validate metadata on launch
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
4aa2e5b85d
commit
2af6902b42
30 changed files with 253 additions and 215 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue