| 21 | std::string SystemData::getExtension() { return mSearchExtension; } |
| 22 | |
| 23 | SystemData::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 | |
| 51 | SystemData::~SystemData() |
| 52 | { |
nothing calls this directly
no test coverage detected