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

Method GetLocalModsMatchingID

Source/Internal/modloading.cpp:2408–2416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2406}
2407
2408std::vector<ModInstance*> ModLoading::GetLocalModsMatchingID(std::string id) {
2409 std::vector<ModInstance*> lmods;
2410 for (auto& mod : mods) {
2411 if (strmtch(mod->id, id) && mod->modsource == ModSourceLocalModFolder) {
2412 lmods.push_back(mod);
2413 }
2414 }
2415 return lmods;
2416}
2417
2418std::vector<ModInstance*> ModLoading::GetLocalMods() {
2419 std::vector<ModInstance*> lmods;

Callers 1

DrawUpdateToSteamworksFunction · 0.80

Calls 2

strmtchFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected