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:
parent
719f3e863a
commit
75c0046f41
@ -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()
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user