diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-10-07 23:09:50 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-10-08 01:38:26 +0200 |
commit | a58912eaf7e98c1bc9e960fbf77b6293e57c28a1 (patch) | |
tree | 7408fbdb67054ba5ffec8341658ea391d1f4b4c5 /logic | |
parent | 346087efbb1eadf462b8b448a0d4c0458d3a2c0c (diff) | |
download | MultiMC-a58912eaf7e98c1bc9e960fbf77b6293e57c28a1.tar MultiMC-a58912eaf7e98c1bc9e960fbf77b6293e57c28a1.tar.gz MultiMC-a58912eaf7e98c1bc9e960fbf77b6293e57c28a1.tar.lz MultiMC-a58912eaf7e98c1bc9e960fbf77b6293e57c28a1.tar.xz MultiMC-a58912eaf7e98c1bc9e960fbf77b6293e57c28a1.zip |
Basic version changing (OneSix only for now)
Diffstat (limited to 'logic')
-rw-r--r-- | logic/LegacyInstance.cpp | 2 | ||||
-rw-r--r-- | logic/NostalgiaInstance.cpp | 4 | ||||
-rw-r--r-- | logic/NostalgiaInstance.h | 1 | ||||
-rw-r--r-- | logic/lists/MinecraftVersionList.cpp | 4 |
4 files changed, 11 insertions, 0 deletions
diff --git a/logic/LegacyInstance.cpp b/logic/LegacyInstance.cpp index 2ffcb075..205f6873 100644 --- a/logic/LegacyInstance.cpp +++ b/logic/LegacyInstance.cpp @@ -314,6 +314,8 @@ QString LegacyInstance::defaultCustomBaseJar() const bool LegacyInstance::menuActionEnabled ( QString action_name ) const { + if (action_name == "actionChangeInstMCVersion") + return false; return true; } diff --git a/logic/NostalgiaInstance.cpp b/logic/NostalgiaInstance.cpp index 039cd9ce..efd8f46b 100644 --- a/logic/NostalgiaInstance.cpp +++ b/logic/NostalgiaInstance.cpp @@ -11,6 +11,10 @@ QString NostalgiaInstance::getStatusbarDescription() return "Nostalgia : " + intendedVersionId(); } +bool NostalgiaInstance::menuActionEnabled(QString action_name) const +{ + return false; +} /* ADD MORE diff --git a/logic/NostalgiaInstance.h b/logic/NostalgiaInstance.h index 1436e48d..64eb7a81 100644 --- a/logic/NostalgiaInstance.h +++ b/logic/NostalgiaInstance.h @@ -8,5 +8,6 @@ class NostalgiaInstance : public OneSixInstance public: explicit NostalgiaInstance(const QString &rootDir, SettingsObject * settings, QObject *parent = 0); virtual QString getStatusbarDescription(); + virtual bool menuActionEnabled(QString action_name) const; }; diff --git a/logic/lists/MinecraftVersionList.cpp b/logic/lists/MinecraftVersionList.cpp index 36611165..fbf609b5 100644 --- a/logic/lists/MinecraftVersionList.cpp +++ b/logic/lists/MinecraftVersionList.cpp @@ -122,9 +122,13 @@ MCVListLoadTask::MCVListLoadTask(MinecraftVersionList *vlist) legacyWhitelist.insert("1.4.6"); legacyWhitelist.insert("1.4.5"); legacyWhitelist.insert("1.4.4"); + legacyWhitelist.insert("1.4.3"); legacyWhitelist.insert("1.4.2"); + legacyWhitelist.insert("1.4.1"); + legacyWhitelist.insert("1.4"); legacyWhitelist.insert("1.3.2"); legacyWhitelist.insert("1.3.1"); + legacyWhitelist.insert("1.3"); legacyWhitelist.insert("1.2.5"); legacyWhitelist.insert("1.2.4"); legacyWhitelist.insert("1.2.3"); |