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

Method SystemData

src/SystemData.cpp:23–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21std::string SystemData::getExtension() { return mSearchExtension; }
22
23SystemData::SystemData(std::string name, std::string descName, std::string startPath, std::string extension, std::string command)
24{
25 mName = name;
26 mDescName = descName;
27
28 //expand home symbol if the startpath contains ~
29 if(startPath[0] == '~')
30 {
31 startPath.erase(0, 1);
32 std::string home = getHomePath();
33 startPath.insert(0, home);
34 }
35
36 mStartPath = startPath;
37 mSearchExtension = extension;
38 mLaunchCommand = command;
39
40 mRootFolder = new FolderData(this, mStartPath, "Search Root");
41
42 if(!Settings::getInstance()->getBool("PARSEGAMELISTONLY"))
43 populateFolder(mRootFolder);
44
45 if(!Settings::getInstance()->getBool("IGNOREGAMELIST"))
46 parseGamelist(this);
47
48 mRootFolder->sort();
49}
50
51SystemData::~SystemData()
52{

Callers

nothing calls this directly

Calls 4

getHomePathFunction · 0.85
parseGamelistFunction · 0.85
getBoolMethod · 0.80
sortMethod · 0.45

Tested by

no test coverage detected