diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-09-16 23:09:05 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-09-17 19:24:39 +0200 |
commit | 9a6c2b0e2c0a4fb9f26b9c9d1137a66d7977251b (patch) | |
tree | 962cbb167d58cc022ceb4d7bbc4e3b4e00a5849f /api/logic/FolderInstanceProvider.cpp | |
parent | b2b04876009400c04658d9b986b86d3edeb3b51a (diff) | |
download | MultiMC-9a6c2b0e2c0a4fb9f26b9c9d1137a66d7977251b.tar MultiMC-9a6c2b0e2c0a4fb9f26b9c9d1137a66d7977251b.tar.gz MultiMC-9a6c2b0e2c0a4fb9f26b9c9d1137a66d7977251b.tar.lz MultiMC-9a6c2b0e2c0a4fb9f26b9c9d1137a66d7977251b.tar.xz MultiMC-9a6c2b0e2c0a4fb9f26b9c9d1137a66d7977251b.zip |
NOISSUE Add back Legacy for migration purposes
Diffstat (limited to 'api/logic/FolderInstanceProvider.cpp')
-rw-r--r-- | api/logic/FolderInstanceProvider.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/api/logic/FolderInstanceProvider.cpp b/api/logic/FolderInstanceProvider.cpp index a0fbd46a..25e9bb84 100644 --- a/api/logic/FolderInstanceProvider.cpp +++ b/api/logic/FolderInstanceProvider.cpp @@ -2,6 +2,7 @@ #include "settings/INISettingsObject.h" #include "FileSystem.h" #include "minecraft/MinecraftInstance.h" +#include "minecraft/legacy/LegacyInstance.h" #include "NullInstance.h" #include <QDir> @@ -90,6 +91,10 @@ InstancePtr FolderInstanceProvider::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)); |