fix archive detection (#4486)
This commit is contained in:
@@ -138,12 +138,12 @@ void InstanceImportTask::processZipPack()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
auto fileName = f->filename();
|
auto fileName = f->filename();
|
||||||
if (fileName == "/modrinth.index.json") {
|
if (fileName == "modrinth.index.json") {
|
||||||
// process as Modrinth pack
|
// process as Modrinth pack
|
||||||
qDebug() << "Modrinth:" << true;
|
qDebug() << "Modrinth:" << true;
|
||||||
m_modpackType = ModpackType::Modrinth;
|
m_modpackType = ModpackType::Modrinth;
|
||||||
stop = true;
|
stop = true;
|
||||||
} else if (fileName == "/bin/modpack.jar" || fileName == "/bin/version.json") {
|
} else if (fileName == "bin/modpack.jar" || fileName == "bin/version.json") {
|
||||||
// process as Technic pack
|
// process as Technic pack
|
||||||
qDebug() << "Technic:" << true;
|
qDebug() << "Technic:" << true;
|
||||||
extractDir.mkpath("minecraft");
|
extractDir.mkpath("minecraft");
|
||||||
|
|||||||
Reference in New Issue
Block a user