diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-08-15 10:36:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-15 10:36:09 +0200 |
commit | 4b06255cc26933379107745d95f72097737d2a9b (patch) | |
tree | 60e00c8389bb2d8e4be492531beb788a253d1b6a /launcher/modplatform/legacy_ftb/PackFetchTask.cpp | |
parent | 3aba7f8fec45c7c87be486d8f6b5c96f69facf93 (diff) | |
parent | 1939e3e6ed3d2d2d4199d90154333cc8892eafeb (diff) | |
download | PrismLauncher-4b06255cc26933379107745d95f72097737d2a9b.tar.gz PrismLauncher-4b06255cc26933379107745d95f72097737d2a9b.tar.bz2 PrismLauncher-4b06255cc26933379107745d95f72097737d2a9b.zip |
Merge pull request #1486 from PrismLauncher/staging
Diffstat (limited to 'launcher/modplatform/legacy_ftb/PackFetchTask.cpp')
-rw-r--r-- | launcher/modplatform/legacy_ftb/PackFetchTask.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/launcher/modplatform/legacy_ftb/PackFetchTask.cpp b/launcher/modplatform/legacy_ftb/PackFetchTask.cpp index 6d27357a..8f1a6e2f 100644 --- a/launcher/modplatform/legacy_ftb/PackFetchTask.cpp +++ b/launcher/modplatform/legacy_ftb/PackFetchTask.cpp @@ -40,6 +40,8 @@ #include "Application.h" #include "BuildConfig.h" +#include "net/ApiDownload.h" + namespace LegacyFTB { void PackFetchTask::fetch() @@ -51,7 +53,7 @@ void PackFetchTask::fetch() QUrl publicPacksUrl = QUrl(BuildConfig.LEGACY_FTB_CDN_BASE_URL + "static/modpacks.xml"); qDebug() << "Downloading public version info from" << publicPacksUrl.toString(); - jobPtr->addNetAction(Net::Download::makeByteArray(publicPacksUrl, publicModpacksXmlFileData)); + jobPtr->addNetAction(Net::ApiDownload::makeByteArray(publicPacksUrl, publicModpacksXmlFileData)); QUrl thirdPartyUrl = QUrl(BuildConfig.LEGACY_FTB_CDN_BASE_URL + "static/thirdparty.xml"); qDebug() << "Downloading thirdparty version info from" << thirdPartyUrl.toString(); @@ -71,7 +73,7 @@ void PackFetchTask::fetchPrivate(const QStringList& toFetch) for (auto& packCode : toFetch) { auto data = std::make_shared<QByteArray>(); NetJob* job = new NetJob("Fetching private pack", m_network); - job->addNetAction(Net::Download::makeByteArray(privatePackBaseUrl.arg(packCode), data)); + job->addNetAction(Net::ApiDownload::makeByteArray(privatePackBaseUrl.arg(packCode), data)); QObject::connect(job, &NetJob::succeeded, this, [this, job, data, packCode] { ModpackList packs; |