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

Method findCampaigns

Source/ResourceMan.cpp:116–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116void 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
133void cResourceMan::findVersions() {
134 bool haveRetail = false;

Callers

nothing calls this directly

Calls 2

emplaceMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected