mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
fix archive detection
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
7eaaf6a224
commit
e775629e1f
1 changed files with 2 additions and 2 deletions
|
|
@ -138,12 +138,12 @@ void InstanceImportTask::processZipPack()
|
|||
return true;
|
||||
}
|
||||
auto fileName = f->filename();
|
||||
if (fileName == "/modrinth.index.json") {
|
||||
if (fileName == "modrinth.index.json") {
|
||||
// process as Modrinth pack
|
||||
qDebug() << "Modrinth:" << true;
|
||||
m_modpackType = ModpackType::Modrinth;
|
||||
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
|
||||
qDebug() << "Technic:" << true;
|
||||
extractDir.mkpath("minecraft");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue