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

Method loaderModList

launcher/minecraft/MinecraftInstance.cpp:1100–1110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1098}
1099
1100std::shared_ptr<ModFolderModel> MinecraftInstance::loaderModList() const
1101{
1102 if (!m_loader_mod_list)
1103 {
1104 bool is_indexed = !APPLICATION->settings()->get("ModMetadataDisabled").toBool();
1105 m_loader_mod_list.reset(new ModFolderModel(modsRoot(), is_indexed));
1106 m_loader_mod_list->disableInteraction(isRunning());
1107 connect(this, &BaseInstance::runningStatusChanged, m_loader_mod_list.get(), &ModFolderModel::disableInteraction);
1108 }
1109 return m_loader_mod_list;
1110}
1111
1112std::shared_ptr<ModFolderModel> MinecraftInstance::coreModList() const
1113{

Callers 2

getPagesFunction · 0.80
executeTaskMethod · 0.80

Calls 4

getMethod · 0.45
settingsMethod · 0.45
resetMethod · 0.45
disableInteractionMethod · 0.45

Tested by

no test coverage detected