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

Method GetMod

Source/Internal/modloading.cpp:2231–2241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2229}
2230
2231std::vector<ModInstance*>::iterator ModLoading::GetMod(const std::string& path) {
2232 std::vector<ModInstance*>::iterator modit = mods.begin();
2233
2234 for (; modit != mods.end(); modit++) {
2235 if ((*modit)->path == path) {
2236 break;
2237 }
2238 }
2239
2240 return modit;
2241}
2242
2243bool ModLoading::IsCampaignPresent(const std::string& campaign) {
2244 for (auto& mod : mods) {

Callers 15

VerifyForUploadMethod · 0.80
RequestUploadMethod · 0.80
RequestUnsubscribeMethod · 0.80
ReloadMethod · 0.80
OnUGCCreateItemResultMethod · 0.80
OpenWebPageToModMethod · 0.80
DrawSimpleModMenuFunction · 0.80
DrawAdvancedModMenuFunction · 0.80
DrawUploadToSteamworksFunction · 0.80

Calls 3

GetSidMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected