diff options
| author | Ezekiel Smith <ezekielsmith@protonmail.com> | 2022-02-26 01:54:15 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-26 01:54:15 +1100 |
| commit | ccc27d1b7c8207580975122ad70f0f5687c4fffd (patch) | |
| tree | a4400e377be735c4cf85f66e4a02e4f342f2f92f /launcher/InstanceList.cpp | |
| parent | 9e35560554eb089370ba487e5b6265b4bd8e739a (diff) | |
| parent | 624ab25cd490833fa43743137918f7014c9fe376 (diff) | |
| download | PrismLauncher-ccc27d1b7c8207580975122ad70f0f5687c4fffd.tar.gz PrismLauncher-ccc27d1b7c8207580975122ad70f0f5687c4fffd.tar.bz2 PrismLauncher-ccc27d1b7c8207580975122ad70f0f5687c4fffd.zip | |
Merge pull request #192 from Scrumplex/refactor-remove-legacy-instances
Drop legacy instances
Diffstat (limited to 'launcher/InstanceList.cpp')
| -rw-r--r-- | launcher/InstanceList.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/launcher/InstanceList.cpp b/launcher/InstanceList.cpp index ad18740b..04b86f6b 100644 --- a/launcher/InstanceList.cpp +++ b/launcher/InstanceList.cpp @@ -32,7 +32,6 @@ #include "BaseInstance.h" #include "InstanceTask.h" #include "settings/INISettingsObject.h" -#include "minecraft/legacy/LegacyInstance.h" #include "NullInstance.h" #include "minecraft/MinecraftInstance.h" #include "FileSystem.h" @@ -545,7 +544,7 @@ InstancePtr InstanceList::loadInstance(const InstanceId& id) auto instanceSettings = std::make_shared<INISettingsObject>(FS::PathCombine(instanceRoot, "instance.cfg")); InstancePtr inst; - instanceSettings->registerSetting("InstanceType", "Legacy"); + instanceSettings->registerSetting("InstanceType", "Legacy"); // intentionally Legacy. We don't support it. QString inst_type = instanceSettings->get("InstanceType").toString(); @@ -553,10 +552,6 @@ InstancePtr InstanceList::loadInstance(const InstanceId& id) { inst.reset(new MinecraftInstance(m_globalSettings, instanceSettings, instanceRoot)); } - else if (inst_type == "Legacy") - { - inst.reset(new LegacyInstance(m_globalSettings, instanceSettings, instanceRoot)); - } else { inst.reset(new NullInstance(m_globalSettings, instanceSettings, instanceRoot)); |
