| 110 | } |
| 111 | |
| 112 | bool FolderData::compareLastPlayed(const FileData* file1, const FileData* file2) |
| 113 | { |
| 114 | //we need game data. try to cast |
| 115 | const GameData * game1 = dynamic_cast<const GameData*>(file1); |
| 116 | const GameData * game2 = dynamic_cast<const GameData*>(file2); |
| 117 | if (game1 != nullptr && game2 != nullptr) { |
| 118 | return game1->getLastPlayed() < game2->getLastPlayed(); |
| 119 | } |
| 120 | return false; |
| 121 | } |
| 122 | |
| 123 | std::string FolderData::getSortStateName(ComparisonFunction & comparisonFunction, bool ascending) |
| 124 | { |
nothing calls this directly
no test coverage detected