diff options
Diffstat (limited to 'logic/LegacyInstance.cpp')
-rw-r--r-- | logic/LegacyInstance.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/logic/LegacyInstance.cpp b/logic/LegacyInstance.cpp index ab6536d0..6ac03e76 100644 --- a/logic/LegacyInstance.cpp +++ b/logic/LegacyInstance.cpp @@ -44,10 +44,12 @@ LegacyInstance::LegacyInstance(const QString &rootDir, SettingsObject *settings, settings->registerSetting(new Setting("IntendedJarVersion", "")); } -Task *LegacyInstance::doUpdate() +Task *LegacyInstance::doUpdate(bool prepare_for_launch) { + // make sure the jar mods list is initialized by asking for it. auto list = jarModList(); - return new LegacyUpdate(this, this); + // create an update task + return new LegacyUpdate(this, prepare_for_launch , this); } MinecraftProcess *LegacyInstance::prepareForLaunch(MojangAccountPtr account) @@ -245,12 +247,6 @@ QString LegacyInstance::currentVersionId() const return d->m_settings->get("JarVersion").toString(); } -void LegacyInstance::setCurrentVersionId(QString val) -{ - I_D(LegacyInstance); - d->m_settings->set("JarVersion", val); -} - QString LegacyInstance::lwjglVersion() const { I_D(LegacyInstance); |