MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / IsCampaignPresent

Method IsCampaignPresent

Source/Internal/modloading.cpp:2243–2254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2241}
2242
2243bool ModLoading::IsCampaignPresent(const std::string& campaign) {
2244 for (auto& mod : mods) {
2245 if (mod->IsActive()) {
2246 for (uint32_t j = 0; j < mod->campaigns.size(); j++) {
2247 if (strmtch(mod->campaigns[j].id, campaign)) {
2248 return true;
2249 }
2250 }
2251 }
2252 }
2253 return false;
2254}
2255
2256bool ModLoading::CampaignHasLevel(const std::string& campaign, const std::string& level_path) {
2257 for (auto& mod : mods) {

Callers

nothing calls this directly

Calls 3

strmtchFunction · 0.85
IsActiveMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected