MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / getModLoaders

Method getModLoaders

launcher/minecraft/PackProfile.cpp:1012–1027  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1010}
1011
1012ModAPI::ModLoaderTypes PackProfile::getModLoaders()
1013{
1014 ModAPI::ModLoaderTypes result = ModAPI::Unspecified;
1015
1016 QMapIterator<QString, ModAPI::ModLoaderType> i(modloaderMapping);
1017
1018 while (i.hasNext())
1019 {
1020 i.next();
1021 Component* c = getComponent(i.key());
1022 if (c != nullptr && c->isEnabled()) {
1023 result |= i.value();
1024 }
1025 }
1026 return result;
1027}

Callers 5

requestModVersionsMethod · 0.80
updateModVersionsMethod · 0.80
installModsMethod · 0.80
mcLoadersFunction · 0.80

Calls 2

nextMethod · 0.80
isEnabledMethod · 0.80

Tested by

no test coverage detected