summaryrefslogtreecommitdiffstats
path: root/logic/InstanceFactory.cpp
diff options
context:
space:
mode:
authorJan Dalheimer <jan@dalheimer.de>2014-02-21 18:01:06 +0100
committerJan Dalheimer <jan@dalheimer.de>2014-02-21 18:01:06 +0100
commitf54705e1c5311e023b2e1ebd5d4db226a7c7149e (patch)
tree83f7daccc58bb2bdeb89815f8a962356f35d5b79 /logic/InstanceFactory.cpp
parent43881b9cdba95259395c8bf633b670c8a6fead9a (diff)
downloadMultiMC-f54705e1c5311e023b2e1ebd5d4db226a7c7149e.tar
MultiMC-f54705e1c5311e023b2e1ebd5d4db226a7c7149e.tar.gz
MultiMC-f54705e1c5311e023b2e1ebd5d4db226a7c7149e.tar.lz
MultiMC-f54705e1c5311e023b2e1ebd5d4db226a7c7149e.tar.xz
MultiMC-f54705e1c5311e023b2e1ebd5d4db226a7c7149e.zip
Don't assume forge for FTB instances. Fix FTB related stuff.
Diffstat (limited to 'logic/InstanceFactory.cpp')
-rw-r--r--logic/InstanceFactory.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/logic/InstanceFactory.cpp b/logic/InstanceFactory.cpp
index 807bccd0..2c89bf43 100644
--- a/logic/InstanceFactory.cpp
+++ b/logic/InstanceFactory.cpp
@@ -75,6 +75,7 @@ InstanceFactory::InstLoadError InstanceFactory::loadInstance(BaseInstance *&inst
{
return InstanceFactory::UnknownLoadError;
}
+ inst->init();
return NoLoadError;
}
@@ -156,6 +157,8 @@ InstanceFactory::InstCreateError InstanceFactory::createInstance(BaseInstance *&
return InstanceFactory::NoSuchVersion;
}
+ inst->init();
+
// FIXME: really, how do you even know?
return InstanceFactory::NoCreateError;
}