| 1144 | } |
| 1145 | |
| 1146 | std::shared_ptr<ShaderPackFolderModel> MinecraftInstance::shaderPackList() const |
| 1147 | { |
| 1148 | if (!m_shader_pack_list) |
| 1149 | { |
| 1150 | m_shader_pack_list.reset(new ShaderPackFolderModel(shaderPacksDir())); |
| 1151 | m_shader_pack_list->disableInteraction(isRunning()); |
| 1152 | connect(this, &BaseInstance::runningStatusChanged, m_shader_pack_list.get(), &ModFolderModel::disableInteraction); |
| 1153 | } |
| 1154 | return m_shader_pack_list; |
| 1155 | } |
| 1156 | |
| 1157 | std::shared_ptr<WorldList> MinecraftInstance::worldList() const |
| 1158 | { |
no test coverage detected