summaryrefslogtreecommitdiffstats
path: root/application/LaunchController.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-12-03 14:05:35 +0100
committerPetr Mrázek <peterix@gmail.com>2017-12-03 14:05:35 +0100
commit0a56b562864ce56d14a9657681f221e91dfba129 (patch)
tree8e4c2fee83c82df453ecc792f265a14b321481b5 /application/LaunchController.cpp
parent30fad998a6795752911e69906f414bd52c6aa2ad (diff)
downloadMultiMC-0a56b562864ce56d14a9657681f221e91dfba129.tar
MultiMC-0a56b562864ce56d14a9657681f221e91dfba129.tar.gz
MultiMC-0a56b562864ce56d14a9657681f221e91dfba129.tar.lz
MultiMC-0a56b562864ce56d14a9657681f221e91dfba129.tar.xz
MultiMC-0a56b562864ce56d14a9657681f221e91dfba129.zip
NOISSUE in offline mode, do not contact the auth server if there is a valid account already
Diffstat (limited to 'application/LaunchController.cpp')
-rw-r--r--application/LaunchController.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/application/LaunchController.cpp b/application/LaunchController.cpp
index 70b71eaf..2e711933 100644
--- a/application/LaunchController.cpp
+++ b/application/LaunchController.cpp
@@ -23,18 +23,18 @@ LaunchController::LaunchController(QObject *parent) : Task(parent)
void LaunchController::executeTask()
{
- login();
-}
-
-// FIXME: minecraft specific
-void LaunchController::login()
-{
if (!m_instance)
{
emitFailed(tr("No instance specified"));
return;
}
+ login();
+}
+
+// FIXME: minecraft specific
+void LaunchController::login()
+{
JavaCommon::checkJVMArgs(m_instance->settings()->get("JvmArgs").toString(), m_parentWidget);
// Find an account to use.