summaryrefslogtreecommitdiffstats
path: root/logic
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
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')
-rw-r--r--logic/LegacyInstance.cpp3
-rw-r--r--logic/minecraft/MinecraftVersion.h3
-rw-r--r--logic/minecraft/MinecraftVersionList.cpp1
3 files changed, 6 insertions, 1 deletions
diff --git a/logic/LegacyInstance.cpp b/logic/LegacyInstance.cpp
index bc4d2cfc..279282e3 100644
--- a/logic/LegacyInstance.cpp
+++ b/logic/LegacyInstance.cpp
@@ -28,6 +28,7 @@
#include "logic/MinecraftProcess.h"
#include "logic/LegacyUpdate.h"
#include "logic/icons/IconList.h"
+#include <gui/dialogs/LegacyModEditDialog.h>
LegacyInstance::LegacyInstance(const QString &rootDir, SettingsObject *settings,
QObject *parent)
@@ -136,7 +137,7 @@ std::shared_ptr<ModList> LegacyInstance::texturePackList()
QDialog *LegacyInstance::createModEditDialog(QWidget *parent)
{
- return nullptr;
+ return new LegacyModEditDialog(this, parent);
}
QString LegacyInstance::jarModsDir() const
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"))
{