GH-3437 Extract Technic single zip packs to correct place

This commit is contained in:
Jamie Mansfield 2020-11-13 16:33:52 +00:00
parent eb3e6e4c6a
commit fd1a8f039a
No known key found for this signature in database
GPG Key ID: 36F61598F39F67B0

View File

@ -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