summaryrefslogtreecommitdiffstats
path: root/logic
diff options
context:
space:
mode:
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"))
{