NOISSUE remove use of obsolete URL constants, simplify the rest

This commit is contained in:
Petr Mrázek 2018-11-04 13:18:35 +01:00
parent 16cc20aefd
commit 58260da861
8 changed files with 13 additions and 18 deletions

View file

@ -27,6 +27,7 @@
#include "FileSystem.h"
#include "net/Download.h"
#include "net/ChecksumValidator.h"
#include "net/URLConstants.h"
namespace AssetsUtils
@ -212,7 +213,7 @@ QString AssetObject::getLocalPath()
QUrl AssetObject::getUrl()
{
return QUrl("https://resources.download.minecraft.net/" + getRelPath());
return URLConstants::RESOURCE_BASE + getRelPath();
}
QString AssetObject::getRelPath()