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

Method coreModList

launcher/minecraft/MinecraftInstance.cpp:1112–1122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1110}
1111
1112std::shared_ptr<ModFolderModel> MinecraftInstance::coreModList() const
1113{
1114 if (!m_core_mod_list)
1115 {
1116 bool is_indexed = !APPLICATION->settings()->get("ModMetadataDisabled").toBool();
1117 m_core_mod_list.reset(new ModFolderModel(coreModsDir(), is_indexed));
1118 m_core_mod_list->disableInteraction(isRunning());
1119 connect(this, &BaseInstance::runningStatusChanged, m_core_mod_list.get(), &ModFolderModel::disableInteraction);
1120 }
1121 return m_core_mod_list;
1122}
1123
1124std::shared_ptr<ResourcePackFolderModel> MinecraftInstance::resourcePackList() const
1125{

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