| 88 | } |
| 89 | |
| 90 | bool FolderData::compareUserRating(const FileData* file1, const FileData* file2) |
| 91 | { |
| 92 | //we need game data. try to cast |
| 93 | const GameData * game1 = dynamic_cast<const GameData*>(file1); |
| 94 | const GameData * game2 = dynamic_cast<const GameData*>(file2); |
| 95 | if (game1 != nullptr && game2 != nullptr) { |
| 96 | return game1->getUserRating() < game2->getUserRating(); |
| 97 | } |
| 98 | return false; |
| 99 | } |
| 100 | |
| 101 | bool FolderData::compareTimesPlayed(const FileData* file1, const FileData* file2) |
| 102 | { |
nothing calls this directly
no test coverage detected