NOISSUE Add NullInstance for instances that can't be loaded
This commit is contained in:
parent
d4d8cb4891
commit
234f57b8e6
3 changed files with 64 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue