summaryrefslogtreecommitdiffstats
path: root/logic/OneSixInstance.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/OneSixInstance.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/OneSixInstance.cpp')
-rw-r--r--logic/OneSixInstance.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/logic/OneSixInstance.cpp b/logic/OneSixInstance.cpp
index 8b4de641..f7e56591 100644
--- a/logic/OneSixInstance.cpp
+++ b/logic/OneSixInstance.cpp
@@ -36,6 +36,10 @@ OneSixInstance::OneSixInstance(const QString &rootDir, SettingsObject *settings,
d->m_settings->registerSetting("ShouldUpdate", false);
d->version.reset(new OneSixVersion(this, this));
d->vanillaVersion.reset(new OneSixVersion(this, this));
+}
+
+void OneSixInstance::init()
+{
if (QDir(instanceRoot()).exists("version.json"))
{
reloadVersion();
@@ -316,11 +320,12 @@ bool OneSixInstance::reloadVersion(QWidget *widgetParent)
{
I_D(OneSixInstance);
- bool ret = d->version->reload(widgetParent);
+ bool ret = d->version->reload(widgetParent, false, externalPatches());
if (ret)
{
- ret = d->vanillaVersion->reload(widgetParent, true);
+ ret = d->vanillaVersion->reload(widgetParent, true, externalPatches());
}
+
emit versionReloaded();
return ret;
}
@@ -381,6 +386,11 @@ QDir OneSixInstance::versionsPath() const
return QDir::current().absoluteFilePath("versions");
}
+QStringList OneSixInstance::externalPatches() const
+{
+ return QStringList();
+}
+
QString OneSixInstance::loaderModsDir() const
{
return PathCombine(minecraftRoot(), "mods");