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

Method compareLastPlayed

src/FolderData.cpp:112–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112bool 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
123std::string FolderData::getSortStateName(ComparisonFunction & comparisonFunction, bool ascending)
124{

Callers

nothing calls this directly

Calls 1

getLastPlayedMethod · 0.80

Tested by

no test coverage detected