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/minecraft/Library.cpp | |
parent | 3158082b16009907e1abed0308498d10788f0f42 (diff) | |
download | PrismLauncher-e7f373496ed51d30d87eb1b75410d4f02f0412ec.tar.gz PrismLauncher-e7f373496ed51d30d87eb1b75410d4f02f0412ec.tar.bz2 PrismLauncher-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/Library.cpp')
-rw-r--r-- | api/logic/minecraft/Library.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/api/logic/minecraft/Library.cpp b/api/logic/minecraft/Library.cpp index 9ff8dcdc..b3c7657c 100644 --- a/api/logic/minecraft/Library.cpp +++ b/api/logic/minecraft/Library.cpp @@ -5,6 +5,7 @@ #include <net/ChecksumValidator.h> #include <Env.h> #include <FileSystem.h> +#include <BuildConfig.h> void Library::getApplicableFiles(OpSys system, QStringList& jar, QStringList& native, QStringList& native32, @@ -171,7 +172,7 @@ QList< std::shared_ptr< NetAction > > Library::getDownloads( if (m_repositoryURL.isEmpty()) { - return URLConstants::LIBRARY_BASE + raw_storage; + return BuildConfig.LIBRARY_BASE + raw_storage; } if(m_repositoryURL.endsWith('/')) |