summaryrefslogtreecommitdiffstats
path: root/api/logic/minecraft/AssetsUtils.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2020-07-18 16:18:02 +0200
committerPetr Mrázek <peterix@gmail.com>2020-07-18 16:22:05 +0200
commite7f373496ed51d30d87eb1b75410d4f02f0412ec (patch)
treedb040fd29b1a95968324ef0b52fbc48d228d9f25 /api/logic/minecraft/AssetsUtils.cpp
parent3158082b16009907e1abed0308498d10788f0f42 (diff)
downloadMultiMC-e7f373496ed51d30d87eb1b75410d4f02f0412ec.tar
MultiMC-e7f373496ed51d30d87eb1b75410d4f02f0412ec.tar.gz
MultiMC-e7f373496ed51d30d87eb1b75410d4f02f0412ec.tar.lz
MultiMC-e7f373496ed51d30d87eb1b75410d4f02f0412ec.tar.xz
MultiMC-e7f373496ed51d30d87eb1b75410d4f02f0412ec.zip
GH-3234 Add support for custom meta URLs at build time
This is not particularly interesting for non-developers. Also includes some internal restructuring of URL constants in general.
Diffstat (limited to 'api/logic/minecraft/AssetsUtils.cpp')
-rw-r--r--api/logic/minecraft/AssetsUtils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/logic/minecraft/AssetsUtils.cpp b/api/logic/minecraft/AssetsUtils.cpp
index f94f68b1..68089080 100644
--- a/api/logic/minecraft/AssetsUtils.cpp
+++ b/api/logic/minecraft/AssetsUtils.cpp
@@ -27,7 +27,7 @@
#include "FileSystem.h"
#include "net/Download.h"
#include "net/ChecksumValidator.h"
-#include "net/URLConstants.h"
+#include "BuildConfig.h"
namespace {
QSet<QString> collectPathsFromDir(QString dirPath)
@@ -308,7 +308,7 @@ QString AssetObject::getLocalPath()
QUrl AssetObject::getUrl()
{
- return URLConstants::RESOURCE_BASE + getRelPath();
+ return BuildConfig.RESOURCE_BASE + getRelPath();
}
QString AssetObject::getRelPath()