| 206 | } |
| 207 | |
| 208 | void cResourceMan::findSaves() { |
| 209 | mSaves.clear(); |
| 210 | |
| 211 | // Loop each path |
| 212 | for (auto& ValidPath : mValidPaths) { |
| 213 | auto basepath = ValidPath + PathGenerate("", eSave); |
| 214 | |
| 215 | auto files = DirectoryList(basepath, EXTENSION_SAVEGAME); |
| 216 | |
| 217 | for (auto& file : files) { |
| 218 | mSaves.emplace(std::make_pair(file, basepath + file)); |
| 219 | } |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | void cResourceMan::findCustomMaps() { |
| 224 | mMaps.clear(); |