summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJamie Mansfield <jmansfield@cadixdev.org>2020-11-13 16:33:52 +0000
committerJamie Mansfield <jmansfield@cadixdev.org>2020-11-13 16:33:52 +0000
commitfd1a8f039ad28263e8e8dd1fc6848f9809084283 (patch)
tree0a6b7f7864b2d636353631af2b5ce6292f1edfc1
parenteb3e6e4c6ae29c9542d6c4b715644b7207c1ee93 (diff)
downloadMultiMC-fd1a8f039ad28263e8e8dd1fc6848f9809084283.tar
MultiMC-fd1a8f039ad28263e8e8dd1fc6848f9809084283.tar.gz
MultiMC-fd1a8f039ad28263e8e8dd1fc6848f9809084283.tar.lz
MultiMC-fd1a8f039ad28263e8e8dd1fc6848f9809084283.tar.xz
MultiMC-fd1a8f039ad28263e8e8dd1fc6848f9809084283.zip
GH-3437 Extract Technic single zip packs to correct place
-rw-r--r--api/logic/modplatform/technic/SingleZipPackInstallTask.cpp3
1 files changed, 2 insertions, 1 deletions
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 <QtConcurrent>
+#include <FileSystem.h>
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