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

Method getGamelistPath

src/SystemData.cpp:345–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343}
344
345std::string SystemData::getGamelistPath()
346{
347 std::string filePath;
348
349 filePath = mRootFolder->getPath() + "/gamelist.xml";
350 if(fs::exists(filePath))
351 return filePath;
352
353 filePath = getHomePath();
354 filePath += "/.emulationstation/"+ getName() + "/gamelist.xml";
355 if(fs::exists(filePath))
356 return filePath;
357
358 return "";
359}
360
361bool SystemData::hasGamelist()
362{

Callers 2

parseGamelistFunction · 0.80
updateGamelistFunction · 0.80

Calls 1

getHomePathFunction · 0.85

Tested by

no test coverage detected