diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-08-10 20:38:32 +0200 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2023-08-10 20:38:32 +0200 |
commit | ef6f9487f48ee6f114d47108977380fb4c278597 (patch) | |
tree | 57945b096640c87a976223daace6ecc27613d4c1 /launcher/modplatform/legacy_ftb/PackInstallTask.cpp | |
parent | 81bc9e488f653eba3e29d63b51c95f73f03ad182 (diff) | |
parent | 2090f958c8d1940238fe08f98eee2145edb12906 (diff) | |
download | PrismLauncher-ef6f9487f48ee6f114d47108977380fb4c278597.tar.gz PrismLauncher-ef6f9487f48ee6f114d47108977380fb4c278597.tar.bz2 PrismLauncher-ef6f9487f48ee6f114d47108977380fb4c278597.zip |
Merge remote-tracking branch 'upstream/staging' into chore/add-compiler-warnings
Diffstat (limited to 'launcher/modplatform/legacy_ftb/PackInstallTask.cpp')
-rw-r--r-- | launcher/modplatform/legacy_ftb/PackInstallTask.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/launcher/modplatform/legacy_ftb/PackInstallTask.cpp b/launcher/modplatform/legacy_ftb/PackInstallTask.cpp index 1afe5783..beb295dc 100644 --- a/launcher/modplatform/legacy_ftb/PackInstallTask.cpp +++ b/launcher/modplatform/legacy_ftb/PackInstallTask.cpp @@ -48,6 +48,8 @@ #include "Application.h" #include "BuildConfig.h" +#include "net/ApiDownload.h" + namespace LegacyFTB { PackInstallTask::PackInstallTask(shared_qobject_ptr<QNetworkAccessManager> network, Modpack pack, QString version) @@ -77,7 +79,7 @@ void PackInstallTask::downloadPack() } else { url = QString(BuildConfig.LEGACY_FTB_CDN_BASE_URL + "modpacks/%1").arg(archivePath); } - netJobContainer->addNetAction(Net::Download::makeFile(url, archivePath)); + netJobContainer->addNetAction(Net::ApiDownload::makeFile(url, archivePath)); connect(netJobContainer.get(), &NetJob::succeeded, this, &PackInstallTask::unzip); connect(netJobContainer.get(), &NetJob::failed, this, &PackInstallTask::emitFailed); |