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

Method findSaves

Source/ResourceMan.cpp:208–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208void 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
223void cResourceMan::findCustomMaps() {
224 mMaps.clear();

Callers

nothing calls this directly

Calls 2

emplaceMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected