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

Method texturePackList

launcher/minecraft/MinecraftInstance.cpp:1135–1144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1133}
1134
1135std::shared_ptr<TexturePackFolderModel> MinecraftInstance::texturePackList() const
1136{
1137 if (!m_texture_pack_list)
1138 {
1139 m_texture_pack_list.reset(new TexturePackFolderModel(texturePacksDir()));
1140 m_texture_pack_list->disableInteraction(isRunning());
1141 connect(this, &BaseInstance::runningStatusChanged, m_texture_pack_list.get(), &ModFolderModel::disableInteraction);
1142 }
1143 return m_texture_pack_list;
1144}
1145
1146std::shared_ptr<ShaderPackFolderModel> MinecraftInstance::shaderPackList() const
1147{

Callers 1

getPagesFunction · 0.80

Calls 3

resetMethod · 0.45
disableInteractionMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected