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

Method compareRating

src/FolderData.cpp:79–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79bool FolderData::compareRating(const FileData* file1, const FileData* file2)
80{
81 //we need game data. try to cast
82 const GameData * game1 = dynamic_cast<const GameData*>(file1);
83 const GameData * game2 = dynamic_cast<const GameData*>(file2);
84 if (game1 != nullptr && game2 != nullptr) {
85 return game1->getRating() < game2->getRating();
86 }
87 return false;
88}
89
90bool FolderData::compareUserRating(const FileData* file1, const FileData* file2)
91{

Callers

nothing calls this directly

Calls 1

getRatingMethod · 0.80

Tested by

no test coverage detected