NOISSUE initial meta version will be 1, map 0 to 1

Metadata for version 1 will be at v1.meta.multimc.org
This commit is contained in:
Petr Mrázek 2017-12-29 01:49:23 +01:00
parent 719f3e863a
commit 75c0046f41
3 changed files with 3 additions and 2 deletions

View File

@ -74,7 +74,7 @@ Meta::BaseEntity::~BaseEntity()
QUrl Meta::BaseEntity::url() const 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() bool Meta::BaseEntity::loadLocalFile()

View File

@ -112,6 +112,7 @@ MetadataVersion parseFormatVersion(const QJsonObject &obj, bool required)
switch(obj.value("formatVersion").toInt()) switch(obj.value("formatVersion").toInt())
{ {
case 0: case 0:
case 1:
return MetadataVersion::InitialRelease; return MetadataVersion::InitialRelease;
default: default:
return MetadataVersion::Invalid; return MetadataVersion::Invalid;

View File

@ -31,7 +31,7 @@ class VersionList;
enum class MetadataVersion enum class MetadataVersion
{ {
Invalid = -1, Invalid = -1,
InitialRelease = 0 InitialRelease = 1
}; };
class ParseException : public Exception class ParseException : public Exception