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

Method resourcePackList

launcher/minecraft/MinecraftInstance.cpp:1124–1133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1122}
1123
1124std::shared_ptr<ResourcePackFolderModel> MinecraftInstance::resourcePackList() const
1125{
1126 if (!m_resource_pack_list)
1127 {
1128 m_resource_pack_list.reset(new ResourcePackFolderModel(resourcePacksDir()));
1129 m_resource_pack_list->enableInteraction(!isRunning());
1130 connect(this, &BaseInstance::runningStatusChanged, m_resource_pack_list.get(), &ResourcePackFolderModel::disableInteraction);
1131 }
1132 return m_resource_pack_list;
1133}
1134
1135std::shared_ptr<TexturePackFolderModel> MinecraftInstance::texturePackList() const
1136{

Callers 1

getPagesFunction · 0.80

Calls 3

enableInteractionMethod · 0.80
resetMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected