NOISSUE update FTB URLs

This commit is contained in:
Petr Mrázek
2019-01-04 01:48:36 +01:00
parent 4b7971f60f
commit ec2732ccd1
4 changed files with 13 additions and 6 deletions

View File

@ -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();