aboutsummaryrefslogtreecommitdiff
path: root/launcher
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-05-29 14:16:13 +0200
committerSefa Eyeoglu <contact@scrumplex.net>2022-05-29 14:16:13 +0200
commit0b3115997a970b0507665703b9e70da8b3d22423 (patch)
tree0bdd991bf75005af829397f0e881f316af3fe18b /launcher
parent4a0b0d873513e3a32d9d37607a56ee1fb95eb0ab (diff)
downloadPrismLauncher-0b3115997a970b0507665703b9e70da8b3d22423.tar.gz
PrismLauncher-0b3115997a970b0507665703b9e70da8b3d22423.tar.bz2
PrismLauncher-0b3115997a970b0507665703b9e70da8b3d22423.zip
fix: fix importing Flame/MMC packs
Diffstat (limited to 'launcher')
-rw-r--r--launcher/InstanceImportTask.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/InstanceImportTask.cpp b/launcher/InstanceImportTask.cpp
index 68a497cc..6df5a491 100644
--- a/launcher/InstanceImportTask.cpp
+++ b/launcher/InstanceImportTask.cpp
@@ -164,14 +164,14 @@ void InstanceImportTask::processZipPack()
QString mmcRoot = MMCZip::findFolderOfFileInZip(m_packZip.get(), "instance.cfg");
QString flameRoot = MMCZip::findFolderOfFileInZip(m_packZip.get(), "manifest.json");
- if (!mmcRoot.isEmpty())
+ if (!mmcRoot.isNull())
{
// process as MultiMC instance/pack
qDebug() << "MultiMC:" << mmcRoot;
root = mmcRoot;
m_modpackType = ModpackType::MultiMC;
}
- else if(!flameRoot.isEmpty())
+ else if(!flameRoot.isNull())
{
// process as Flame pack
qDebug() << "Flame:" << flameRoot;