MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / findCustomMaps

Method findCustomMaps

Source/ResourceMan.cpp:223–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223void 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
242void cResourceMan::refresh() {
243 validatePaths();

Callers

nothing calls this directly

Calls 2

emplaceMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected