fix curseforge import
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
@@ -150,22 +150,17 @@ void InstanceImportTask::processZipPack()
|
|||||||
extractDir.cd("minecraft");
|
extractDir.cd("minecraft");
|
||||||
m_modpackType = ModpackType::Technic;
|
m_modpackType = ModpackType::Technic;
|
||||||
stop = true;
|
stop = true;
|
||||||
} else {
|
} else if (fileName == "manifest.json") {
|
||||||
QFileInfo fileInfo(fileName);
|
qDebug() << "Flame:" << true;
|
||||||
if (fileInfo.fileName() == "instance.cfg") {
|
m_modpackType = ModpackType::Flame;
|
||||||
qDebug() << "MultiMC:" << true;
|
stop = true;
|
||||||
m_modpackType = ModpackType::MultiMC;
|
return true;
|
||||||
root = cleanPath(fileInfo.path());
|
} else if (QFileInfo fileInfo(fileName); fileInfo.fileName() == "instance.cfg") {
|
||||||
stop = true;
|
qDebug() << "MultiMC:" << true;
|
||||||
return true;
|
m_modpackType = ModpackType::MultiMC;
|
||||||
}
|
root = cleanPath(fileInfo.path());
|
||||||
if (fileInfo.fileName() == "manifest.json") {
|
stop = true;
|
||||||
qDebug() << "Flame:" << true;
|
return true;
|
||||||
m_modpackType = ModpackType::Flame;
|
|
||||||
root = cleanPath(fileInfo.path());
|
|
||||||
stop = true;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
QCoreApplication::processEvents();
|
QCoreApplication::processEvents();
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user