MCPcopy Create free account
hub / github.com/Aloshi/EmulationStation / compareUserRating

Method compareUserRating

src/FolderData.cpp:90–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90bool 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
101bool FolderData::compareTimesPlayed(const FileData* file1, const FileData* file2)
102{

Callers

nothing calls this directly

Calls 1

getUserRatingMethod · 0.80

Tested by

no test coverage detected