| 221 | } |
| 222 | |
| 223 | void cResourceMan::findCustomMaps() { |
| 224 | mMaps.clear(); |
| 225 | |
| 226 | // Loop each path |
| 227 | for (auto& ValidPath : mValidPaths) { |
| 228 | auto basepath = ValidPath + PathGenerate("Custom/Maps/", eData); |
| 229 | |
| 230 | if (FileExists(basepath)) { |
| 231 | mCustomMapPath = basepath; |
| 232 | |
| 233 | auto files = DirectoryList(basepath, EXTENSION_MAP); |
| 234 | |
| 235 | for (auto& file : files) { |
| 236 | mMaps.emplace(std::make_pair(file, basepath + file)); |
| 237 | } |
| 238 | } |
| 239 | } |
| 240 | } |
| 241 | |
| 242 | void cResourceMan::refresh() { |
| 243 | validatePaths(); |