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:
		@@ -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()
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
 
 | 
			
		||||
@@ -31,7 +31,7 @@ class VersionList;
 | 
			
		||||
enum class MetadataVersion
 | 
			
		||||
{
 | 
			
		||||
	Invalid = -1,
 | 
			
		||||
	InitialRelease = 0
 | 
			
		||||
	InitialRelease = 1
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
class ParseException : public Exception
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user