diff options
author | Jan Dalheimer <jan@dalheimer.de> | 2014-01-22 15:20:48 +0100 |
---|---|---|
committer | Jan Dalheimer <jan@dalheimer.de> | 2014-01-22 15:20:48 +0100 |
commit | 0a592ab99bc68ad918f74206edf2a77cc257683c (patch) | |
tree | 9222c666b871f0e49bb1b6150d102bca8d2b552c /gui | |
parent | d166b4807223ec7cd0df6f26e05a2f364dc6121c (diff) | |
download | MultiMC-0a592ab99bc68ad918f74206edf2a77cc257683c.tar MultiMC-0a592ab99bc68ad918f74206edf2a77cc257683c.tar.gz MultiMC-0a592ab99bc68ad918f74206edf2a77cc257683c.tar.lz MultiMC-0a592ab99bc68ad918f74206edf2a77cc257683c.tar.xz MultiMC-0a592ab99bc68ad918f74206edf2a77cc257683c.zip |
Work towards liteloader support. Fix creating new instance
Diffstat (limited to 'gui')
-rw-r--r-- | gui/dialogs/DerpModEditDialog.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gui/dialogs/DerpModEditDialog.cpp b/gui/dialogs/DerpModEditDialog.cpp index be17404c..aafaa2e2 100644 --- a/gui/dialogs/DerpModEditDialog.cpp +++ b/gui/dialogs/DerpModEditDialog.cpp @@ -96,7 +96,7 @@ void DerpModEditDialog::updateVersionControls() { bool customVersion = m_inst->versionIsCustom(); ui->forgeBtn->setEnabled(true); - ui->liteloaderBtn->setEnabled(LiteLoaderInstaller(m_inst->intendedVersionId()).canApply()); + ui->liteloaderBtn->setEnabled(LiteLoaderInstaller().canApply(m_inst)); ui->customEditorBtn->setEnabled(customVersion); } @@ -165,8 +165,8 @@ void DerpModEditDialog::on_forgeBtn_clicked() void DerpModEditDialog::on_liteloaderBtn_clicked() { - LiteLoaderInstaller liteloader(m_inst->intendedVersionId()); - if (!liteloader.canApply()) + LiteLoaderInstaller liteloader; + if (!liteloader.canApply(m_inst)) { QMessageBox::critical( this, tr("LiteLoader"), @@ -174,7 +174,7 @@ void DerpModEditDialog::on_liteloaderBtn_clicked() "into this version of Minecraft")); return; } - if (!liteloader.apply(m_version)) + if (!liteloader.add(m_inst)) { QMessageBox::critical( this, tr("LiteLoader"), |