diff options
author | Jamie Mansfield <jmansfield@cadixdev.org> | 2020-11-13 16:33:52 +0000 |
---|---|---|
committer | Jamie Mansfield <jmansfield@cadixdev.org> | 2020-11-13 16:33:52 +0000 |
commit | fd1a8f039ad28263e8e8dd1fc6848f9809084283 (patch) | |
tree | 0a6b7f7864b2d636353631af2b5ce6292f1edfc1 /api/logic/modplatform/technic/SingleZipPackInstallTask.cpp | |
parent | eb3e6e4c6ae29c9542d6c4b715644b7207c1ee93 (diff) | |
download | PrismLauncher-fd1a8f039ad28263e8e8dd1fc6848f9809084283.tar.gz PrismLauncher-fd1a8f039ad28263e8e8dd1fc6848f9809084283.tar.bz2 PrismLauncher-fd1a8f039ad28263e8e8dd1fc6848f9809084283.zip |
GH-3437 Extract Technic single zip packs to correct place
Diffstat (limited to 'api/logic/modplatform/technic/SingleZipPackInstallTask.cpp')
-rw-r--r-- | api/logic/modplatform/technic/SingleZipPackInstallTask.cpp | 3 |
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 |