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

Method compareTimesPlayed

src/FolderData.cpp:101–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101bool FolderData::compareTimesPlayed(const FileData* file1, const FileData* file2)
102{
103 //we need game data. try to cast
104 const GameData * game1 = dynamic_cast<const GameData*>(file1);
105 const GameData * game2 = dynamic_cast<const GameData*>(file2);
106 if (game1 != nullptr && game2 != nullptr) {
107 return game1->getTimesPlayed() < game2->getTimesPlayed();
108 }
109 return false;
110}
111
112bool FolderData::compareLastPlayed(const FileData* file1, const FileData* file2)
113{

Callers

nothing calls this directly

Calls 1

getTimesPlayedMethod · 0.80

Tested by

no test coverage detected