From 439e17b149918df3fd11e0ee74f10d302a1e45cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 11 May 2014 23:48:01 +0200 Subject: Add back legacy mod edit, add checksums for all legacy jars --- logic/minecraft/MinecraftVersion.h | 3 +++ logic/minecraft/MinecraftVersionList.cpp | 1 + 2 files changed, 4 insertions(+) (limited to 'logic/minecraft') diff --git a/logic/minecraft/MinecraftVersion.h b/logic/minecraft/MinecraftVersion.h index 422b4cea..43ac68e1 100644 --- a/logic/minecraft/MinecraftVersion.h +++ b/logic/minecraft/MinecraftVersion.h @@ -92,6 +92,9 @@ public: /* data */ QString m_updateTimeString; QDateTime m_updateTime; + /// MD5 hash of the minecraft jar + QString m_jarChecksum; + /// order of this file... default = -2 int order = -2; diff --git a/logic/minecraft/MinecraftVersionList.cpp b/logic/minecraft/MinecraftVersionList.cpp index e012330e..8d7c18d5 100644 --- a/logic/minecraft/MinecraftVersionList.cpp +++ b/logic/minecraft/MinecraftVersionList.cpp @@ -157,6 +157,7 @@ void MinecraftVersionList::loadBuiltinList() mcVersion->m_type = versionTypeStr; mcVersion->m_appletClass = versionObj.value("appletClass").toString(""); mcVersion->m_mainClass = versionObj.value("mainClass").toString(""); + mcVersion->m_jarChecksum = versionObj.value("checksum").toString(""); mcVersion->m_processArguments = versionObj.value("processArguments").toString("legacy"); if (versionObj.contains("+traits")) { -- cgit v1.2.3