From 75c0046f41c2f69750fcf0913442d4e5336885b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Fri, 29 Dec 2017 01:49:23 +0100 Subject: NOISSUE initial meta version will be 1, map 0 to 1 Metadata for version 1 will be at v1.meta.multimc.org --- api/logic/meta/BaseEntity.cpp | 2 +- api/logic/meta/JsonFormat.cpp | 1 + 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 -- cgit v1.2.3