MCPcopy Create free account
hub / github.com/MultiMC/Launcher / resourcePackList

Method resourcePackList

launcher/minecraft/MinecraftInstance.cpp:985–994  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

983}
984
985std::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
996std::shared_ptr<ModFolderModel> MinecraftInstance::texturePackList() const
997{

Callers 1

ResourcePackPageClass · 0.80

Calls 3

resetMethod · 0.45
disableInteractionMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected