validate metadata on launch
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
@@ -18,12 +18,9 @@
|
||||
#include <QDateTime>
|
||||
|
||||
#include "JsonFormat.h"
|
||||
#include "minecraft/PackProfile.h"
|
||||
|
||||
Meta::Version::Version(const QString& uid, const QString& version) : BaseVersion(), m_uid(uid), m_version(version) {}
|
||||
|
||||
Meta::Version::~Version() {}
|
||||
|
||||
QString Meta::Version::descriptor()
|
||||
{
|
||||
return m_version;
|
||||
@@ -71,6 +68,9 @@ void Meta::Version::mergeFromList(const Meta::Version::Ptr& other)
|
||||
if (m_volatile != other->m_volatile) {
|
||||
setVolatile(other->m_volatile);
|
||||
}
|
||||
if (!other->m_sha256.isEmpty()) {
|
||||
m_sha256 = other->m_sha256;
|
||||
}
|
||||
}
|
||||
|
||||
void Meta::Version::merge(const Version::Ptr& other)
|
||||
|
||||
Reference in New Issue
Block a user