From fd1a8f039ad28263e8e8dd1fc6848f9809084283 Mon Sep 17 00:00:00 2001 From: Jamie Mansfield Date: Fri, 13 Nov 2020 16:33:52 +0000 Subject: [PATCH] GH-3437 Extract Technic single zip packs to correct place --- api/logic/modplatform/technic/SingleZipPackInstallTask.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/logic/modplatform/technic/SingleZipPackInstallTask.cpp b/api/logic/modplatform/technic/SingleZipPackInstallTask.cpp index 833ac0a2..ca0de008 100644 --- a/api/logic/modplatform/technic/SingleZipPackInstallTask.cpp +++ b/api/logic/modplatform/technic/SingleZipPackInstallTask.cpp @@ -21,6 +21,7 @@ #include "TechnicPackProcessor.h" #include +#include Technic::SingleZipPackInstallTask::SingleZipPackInstallTask(const QUrl &sourceUrl, const QString &minecraftVersion) { @@ -48,7 +49,7 @@ void Technic::SingleZipPackInstallTask::executeTask() void Technic::SingleZipPackInstallTask::downloadSucceeded() { setStatus(tr("Extracting modpack")); - QDir extractDir(m_stagingPath); + QDir extractDir(FS::PathCombine(m_stagingPath, ".minecraft")); qDebug() << "Attempting to create instance from" << m_archivePath; // open the zip and find relevant files in it