| 1098 | } |
| 1099 | |
| 1100 | std::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 | |
| 1112 | std::shared_ptr<ModFolderModel> MinecraftInstance::coreModList() const |
| 1113 | { |
no test coverage detected