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

Method GetForCampaign

Source/Versions.cpp:173–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173const sGameVersion* cVersions::GetForCampaign(const std::string& pCampaign) const {
174 // Look through all available versions for a campaign name match
175 for (auto& Version : g_ResourceMan->GetAvailable()) {
176
177 if (Version->mName == pCampaign)
178 return Version;
179 }
180
181 return 0;
182}
183
184const sGameVersion* cVersions::GetForCampaign(const std::string& pCampaign, const ePlatform pPlatform) const {
185 // Look through all available versions for a campaign name match

Callers 7

menu_loopFunction · 0.80
Campaign_LoadMethod · 0.80
keyProcessMethod · 0.80
Campaign_SelectionMethod · 0.80
Game_LoadMethod · 0.80
Intro_OpenFodderMethod · 0.80
StartMethod · 0.80

Calls 1

GetAvailableMethod · 0.80

Tested by

no test coverage detected