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.
This commit is contained in:
parent
3158082b16
commit
e7f373496e
27 changed files with 75 additions and 99 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue