diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-12-29 01:49:23 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-12-29 01:51:00 +0100 |
commit | 75c0046f41c2f69750fcf0913442d4e5336885b1 (patch) | |
tree | ee79103ff8c9cf05000df37ece155e63a476b33f /api/logic | |
parent | 719f3e863a2bdbaeaba37e837e0f6b75de124e6c (diff) | |
download | MultiMC-75c0046f41c2f69750fcf0913442d4e5336885b1.tar MultiMC-75c0046f41c2f69750fcf0913442d4e5336885b1.tar.gz MultiMC-75c0046f41c2f69750fcf0913442d4e5336885b1.tar.lz MultiMC-75c0046f41c2f69750fcf0913442d4e5336885b1.tar.xz MultiMC-75c0046f41c2f69750fcf0913442d4e5336885b1.zip |
NOISSUE initial meta version will be 1, map 0 to 1
Metadata for version 1 will be at v1.meta.multimc.org
Diffstat (limited to 'api/logic')
-rw-r--r-- | api/logic/meta/BaseEntity.cpp | 2 | ||||
-rw-r--r-- | api/logic/meta/JsonFormat.cpp | 1 | ||||
-rw-r--r-- | api/logic/meta/JsonFormat.h | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/api/logic/meta/BaseEntity.cpp b/api/logic/meta/BaseEntity.cpp index 7cf327be..51b7209a 100644 --- a/api/logic/meta/BaseEntity.cpp +++ b/api/logic/meta/BaseEntity.cpp @@ -74,7 +74,7 @@ Meta::BaseEntity::~BaseEntity() QUrl Meta::BaseEntity::url() const { - return QUrl("https://meta.multimc.org").resolved(localFilename()); + return QUrl("https://dev.meta.multimc.org").resolved(localFilename()); } bool Meta::BaseEntity::loadLocalFile() diff --git a/api/logic/meta/JsonFormat.cpp b/api/logic/meta/JsonFormat.cpp index 6e84597c..493aaecf 100644 --- a/api/logic/meta/JsonFormat.cpp +++ b/api/logic/meta/JsonFormat.cpp @@ -112,6 +112,7 @@ MetadataVersion parseFormatVersion(const QJsonObject &obj, bool required) switch(obj.value("formatVersion").toInt()) { case 0: + case 1: return MetadataVersion::InitialRelease; default: return MetadataVersion::Invalid; diff --git a/api/logic/meta/JsonFormat.h b/api/logic/meta/JsonFormat.h index 82ab0ce3..391ce376 100644 --- a/api/logic/meta/JsonFormat.h +++ b/api/logic/meta/JsonFormat.h @@ -31,7 +31,7 @@ class VersionList; enum class MetadataVersion { Invalid = -1, - InitialRelease = 0 + InitialRelease = 1 }; class ParseException : public Exception |