diff options
author | Petr Mrázek <peterix@gmail.com> | 2019-01-04 01:48:36 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2019-01-04 01:48:36 +0100 |
commit | ec2732ccd16778c433d2312793b65edb131bc7c5 (patch) | |
tree | 3f19f3df7e3d6fac24bcbc465f2c9be572e4ee94 /api/logic/modplatform/ftb/FtbPackInstallTask.cpp | |
parent | 4b7971f60fd7ab7cbbd6fd50b14e9361fe6de036 (diff) | |
download | MultiMC-ec2732ccd16778c433d2312793b65edb131bc7c5.tar MultiMC-ec2732ccd16778c433d2312793b65edb131bc7c5.tar.gz MultiMC-ec2732ccd16778c433d2312793b65edb131bc7c5.tar.lz MultiMC-ec2732ccd16778c433d2312793b65edb131bc7c5.tar.xz MultiMC-ec2732ccd16778c433d2312793b65edb131bc7c5.zip |
NOISSUE update FTB URLs
Diffstat (limited to 'api/logic/modplatform/ftb/FtbPackInstallTask.cpp')
-rw-r--r-- | api/logic/modplatform/ftb/FtbPackInstallTask.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/api/logic/modplatform/ftb/FtbPackInstallTask.cpp b/api/logic/modplatform/ftb/FtbPackInstallTask.cpp index ecacda02..4962bcac 100644 --- a/api/logic/modplatform/ftb/FtbPackInstallTask.cpp +++ b/api/logic/modplatform/ftb/FtbPackInstallTask.cpp @@ -9,6 +9,8 @@ #include "minecraft/ComponentList.h" #include "minecraft/GradleSpecifier.h" +#include "net/URLConstants.h" + FtbPackInstallTask::FtbPackInstallTask(FtbModpack pack, QString version) { m_pack = pack; @@ -32,11 +34,11 @@ void FtbPackInstallTask::downloadPack() QString url; if(m_pack.type == FtbPackType::Private) { - url = QString("https://ftb.cursecdn.com/FTB2/privatepacks/%1").arg(packoffset); + url = QString(URLConstants::FTB_CDN_BASE_URL + "privatepacks/%1").arg(packoffset); } else { - url = QString("https://ftb.cursecdn.com/FTB2/modpacks/%1").arg(packoffset); + url = QString(URLConstants::FTB_CDN_BASE_URL + "modpacks/%1").arg(packoffset); } job->addNetAction(Net::Download::makeCached(url, entry)); archivePath = entry->getFullPath(); |