diff options
author | Petr Mrázek <peterix@gmail.com> | 2020-07-18 16:18:02 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2020-07-18 16:22:05 +0200 |
commit | e7f373496ed51d30d87eb1b75410d4f02f0412ec (patch) | |
tree | db040fd29b1a95968324ef0b52fbc48d228d9f25 /api/logic/meta/BaseEntity.cpp | |
parent | 3158082b16009907e1abed0308498d10788f0f42 (diff) | |
download | MultiMC-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/meta/BaseEntity.cpp')
-rw-r--r-- | api/logic/meta/BaseEntity.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/api/logic/meta/BaseEntity.cpp b/api/logic/meta/BaseEntity.cpp index 697beb56..31d79aa3 100644 --- a/api/logic/meta/BaseEntity.cpp +++ b/api/logic/meta/BaseEntity.cpp @@ -24,6 +24,8 @@ #include "Env.h" #include "Json.h" +#include "BuildConfig.h" + class ParsingValidator : public Net::Validator { public: /* con/des */ @@ -76,7 +78,7 @@ Meta::BaseEntity::~BaseEntity() QUrl Meta::BaseEntity::url() const { - return QUrl("https://meta.multimc.org/v1/").resolved(localFilename()); + return QUrl(BuildConfig.META_URL).resolved(localFilename()); } bool Meta::BaseEntity::loadLocalFile() |