mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-13 05:37:42 +02:00
Ignore .index in ExportPackDialog
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
@ -1227,6 +1227,11 @@ std::shared_ptr<ShaderPackFolderModel> MinecraftInstance::shaderPackList()
|
|||||||
return m_shader_pack_list;
|
return m_shader_pack_list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QList<std::shared_ptr<ResourceFolderModel>> MinecraftInstance::resourceLists()
|
||||||
|
{
|
||||||
|
return { loaderModList(), coreModList(), nilModList(), resourcePackList(), texturePackList(), shaderPackList() };
|
||||||
|
}
|
||||||
|
|
||||||
std::shared_ptr<WorldList> MinecraftInstance::worldList()
|
std::shared_ptr<WorldList> MinecraftInstance::worldList()
|
||||||
{
|
{
|
||||||
if (!m_world_list) {
|
if (!m_world_list) {
|
||||||
|
@ -116,6 +116,7 @@ class MinecraftInstance : public BaseInstance {
|
|||||||
std::shared_ptr<ResourcePackFolderModel> resourcePackList();
|
std::shared_ptr<ResourcePackFolderModel> resourcePackList();
|
||||||
std::shared_ptr<TexturePackFolderModel> texturePackList();
|
std::shared_ptr<TexturePackFolderModel> texturePackList();
|
||||||
std::shared_ptr<ShaderPackFolderModel> shaderPackList();
|
std::shared_ptr<ShaderPackFolderModel> shaderPackList();
|
||||||
|
QList<std::shared_ptr<ResourceFolderModel>> resourceLists();
|
||||||
std::shared_ptr<WorldList> worldList();
|
std::shared_ptr<WorldList> worldList();
|
||||||
std::shared_ptr<GameOptions> gameOptionsModel();
|
std::shared_ptr<GameOptions> gameOptionsModel();
|
||||||
|
|
||||||
|
@ -88,9 +88,9 @@ ExportPackDialog::ExportPackDialog(InstancePtr instance, QWidget* parent, ModPla
|
|||||||
|
|
||||||
MinecraftInstance* mcInstance = dynamic_cast<MinecraftInstance*>(instance.get());
|
MinecraftInstance* mcInstance = dynamic_cast<MinecraftInstance*>(instance.get());
|
||||||
if (mcInstance) {
|
if (mcInstance) {
|
||||||
const QDir index = mcInstance->loaderModList()->indexDir();
|
for (auto& resourceModel : mcInstance->resourceLists())
|
||||||
if (index.exists())
|
if (resourceModel->indexDir().exists())
|
||||||
proxy->ignoreFilesWithPath().insert(root.relativeFilePath(index.absolutePath()));
|
proxy->ignoreFilesWithPath().insert(root.relativeFilePath(resourceModel->indexDir().absolutePath()));
|
||||||
}
|
}
|
||||||
|
|
||||||
ui->files->setModel(proxy);
|
ui->files->setModel(proxy);
|
||||||
|
Reference in New Issue
Block a user