| 114 | } |
| 115 | |
| 116 | void cResourceMan::findCampaigns() { |
| 117 | mCampaigns.clear(); |
| 118 | |
| 119 | // Loop each path |
| 120 | for (auto& ValidPath : mValidPaths) { |
| 121 | auto basepath = ValidPath + PathGenerate("", eCampaign); |
| 122 | |
| 123 | auto files = DirectoryList(basepath, EXTENSION_CAMPAIGN); |
| 124 | |
| 125 | for (auto& file : files) { |
| 126 | size_t Pos = file.find_first_of("."); |
| 127 | std::string FileName = file.substr(0, Pos); |
| 128 | mCampaigns.emplace(std::make_pair(FileName, basepath + FileName)); |
| 129 | } |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | void cResourceMan::findVersions() { |
| 134 | bool haveRetail = false; |