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

Method GetCampaignNames

Source/Versions.cpp:228–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228std::vector<std::string> cVersions::GetCampaignNames() const {
229 std::vector<std::string> SortedList;
230
231 for (auto& KnownVersion : KnownGameVersions) {
232 for (auto& Version : g_ResourceMan->GetAvailable()) {
233
234 if (Version->mName == KnownVersion.mName) {
235 // Already have this campaign?
236 if (std::find(SortedList.begin(), SortedList.end(), Version->mName) != SortedList.end())
237 break;
238
239 SortedList.push_back(KnownVersion.mName);
240 break;
241 }
242 }
243 }
244
245 return SortedList;
246}
247
248std::shared_ptr<cResources> sGameVersion::GetResources() const {
249 if (isPC()) {

Callers 3

Campaign_Select_SetupMethod · 0.80
StartMethod · 0.80
ProcessCLIMethod · 0.80

Calls 5

findFunction · 0.85
GetAvailableMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by 1

StartMethod · 0.64