| 983 | } |
| 984 | |
| 985 | std::shared_ptr<ModFolderModel> MinecraftInstance::resourcePackList() const |
| 986 | { |
| 987 | if (!m_resource_pack_list) |
| 988 | { |
| 989 | m_resource_pack_list.reset(new ResourcePackFolderModel(resourcePacksDir())); |
| 990 | m_resource_pack_list->disableInteraction(isRunning()); |
| 991 | connect(this, &BaseInstance::runningStatusChanged, m_resource_pack_list.get(), &ModFolderModel::disableInteraction); |
| 992 | } |
| 993 | return m_resource_pack_list; |
| 994 | } |
| 995 | |
| 996 | std::shared_ptr<ModFolderModel> MinecraftInstance::texturePackList() const |
| 997 | { |
no test coverage detected