diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-02-11 19:56:55 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-04-12 20:57:18 +0200 |
commit | 234f57b8e60fcae35bbfdf206655f4f438b99191 (patch) | |
tree | 8e0d74fa0cfca6bd2bb5870186ef6f865ee10108 /logic/InstanceList.cpp | |
parent | d4d8cb48919eec22402c5ed88a48796b1ca5311b (diff) | |
download | MultiMC-234f57b8e60fcae35bbfdf206655f4f438b99191.tar MultiMC-234f57b8e60fcae35bbfdf206655f4f438b99191.tar.gz MultiMC-234f57b8e60fcae35bbfdf206655f4f438b99191.tar.lz MultiMC-234f57b8e60fcae35bbfdf206655f4f438b99191.tar.xz MultiMC-234f57b8e60fcae35bbfdf206655f4f438b99191.zip |
NOISSUE Add NullInstance for instances that can't be loaded
Diffstat (limited to 'logic/InstanceList.cpp')
-rw-r--r-- | logic/InstanceList.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/logic/InstanceList.cpp b/logic/InstanceList.cpp index 013de31e..a65d9f56 100644 --- a/logic/InstanceList.cpp +++ b/logic/InstanceList.cpp @@ -37,6 +37,7 @@ #include "minecraft/MinecraftVersion.h" #include "settings/INISettingsObject.h" #include "ftb/FTBPlugin.h" +#include "NullInstance.h" const static int GROUP_FILE_FORMAT_VERSION = 1; @@ -454,7 +455,7 @@ InstanceList::loadInstance(InstancePtr &inst, const QString &instDir) } else { - return InstanceList::UnknownLoadError; + inst.reset(new NullInstance(m_globalSettings, instanceSettings, instDir)); } inst->init(); return NoLoadError; |