summaryrefslogtreecommitdiffstats
path: root/api/logic/FolderInstanceProvider.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-09-16 23:09:05 +0200
committerPetr Mrázek <peterix@gmail.com>2017-09-17 19:24:39 +0200
commit9a6c2b0e2c0a4fb9f26b9c9d1137a66d7977251b (patch)
tree962cbb167d58cc022ceb4d7bbc4e3b4e00a5849f /api/logic/FolderInstanceProvider.cpp
parentb2b04876009400c04658d9b986b86d3edeb3b51a (diff)
downloadMultiMC-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.cpp5
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));