summaryrefslogtreecommitdiffstats
path: root/logic/minecraft
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-05-11 23:48:01 +0200
committerPetr Mrázek <peterix@gmail.com>2014-06-09 01:38:30 +0200
commit439e17b149918df3fd11e0ee74f10d302a1e45cd (patch)
treee464e04c4e8960f6287b76718953f22bfef8dbd2 /logic/minecraft
parent8c71a5d61f20642711bff081be9be3807418e618 (diff)
downloadMultiMC-439e17b149918df3fd11e0ee74f10d302a1e45cd.tar
MultiMC-439e17b149918df3fd11e0ee74f10d302a1e45cd.tar.gz
MultiMC-439e17b149918df3fd11e0ee74f10d302a1e45cd.tar.lz
MultiMC-439e17b149918df3fd11e0ee74f10d302a1e45cd.tar.xz
MultiMC-439e17b149918df3fd11e0ee74f10d302a1e45cd.zip
Add back legacy mod edit, add checksums for all legacy jars
Diffstat (limited to 'logic/minecraft')
-rw-r--r--logic/minecraft/MinecraftVersion.h3
-rw-r--r--logic/minecraft/MinecraftVersionList.cpp1
2 files changed, 4 insertions, 0 deletions
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"))
{