NOISSUE FTB pack code implementation, cleaned up

This commit is contained in:
Jannis Lübke
2018-08-02 00:52:31 +02:00
committed by Petr Mrázek
parent 6cee50eac6
commit 6aada8adf7
14 changed files with 547 additions and 165 deletions

View File

@ -29,7 +29,15 @@ void FtbPackInstallTask::downloadPack()
NetJob *job = new NetJob("Download FTB Pack");
entry->setStale(true);
QString url = QString("http://ftb.cursecdn.com/FTB2/modpacks/%1").arg(packoffset);
QString url;
if(m_pack.type == FtbPackType::Private)
{
url = QString("http://ftb.cursecdn.com/FTB2/privatepacks/%1").arg(packoffset);
}
else
{
url = QString("http://ftb.cursecdn.com/FTB2/modpacks/%1").arg(packoffset);
}
job->addNetAction(Net::Download::makeCached(url, entry));
archivePath = entry->getFullPath();