diff --git a/launcher/include/launchercore.h b/launcher/include/launchercore.h index de1f315..cf272cb 100755 --- a/launcher/include/launchercore.h +++ b/launcher/include/launchercore.h @@ -95,11 +95,6 @@ public: */ Q_INVOKABLE bool autoLogin(Profile *profile); - /* - * Launches the game using the provided authentication. - */ - void launchGame(Profile &settings, const LoginAuth &auth); - void buildRequest(const Profile &settings, QNetworkRequest &request); void setSSL(QNetworkRequest &request); void setupIgnoreSSL(QNetworkReply *reply); diff --git a/launcher/src/launchercore.cpp b/launcher/src/launchercore.cpp index 4c44605..8980466 100755 --- a/launcher/src/launchercore.cpp +++ b/launcher/src/launchercore.cpp @@ -57,17 +57,6 @@ void LauncherCore::buildRequest(const Profile &settings, QNetworkRequest &reques request.setRawHeader(QByteArrayLiteral("Accept-Language"), QByteArrayLiteral("en-us")); } -void LauncherCore::launchGame(Profile &profile, const LoginAuth &auth) -{ - Q_EMIT stageChanged(i18n("Launching game...")); - - if (isSteam()) { - m_steamApi->setLauncherMode(false); - } - - m_runner->beginGameExecutable(profile, auth); -} - QCoro::Task<> LauncherCore::beginLogin(LoginInformation &info) { info.profile->account()->updateConfig(); @@ -82,7 +71,13 @@ QCoro::Task<> LauncherCore::beginLogin(LoginInformation &info) } if (auth != std::nullopt) { - launchGame(*info.profile, *auth); + Q_EMIT stageChanged(i18n("Launching game...")); + + if (isSteam()) { + m_steamApi->setLauncherMode(false); + } + + m_runner->beginGameExecutable(*info.profile, *auth); } } diff --git a/launcher/src/sapphirelogin.cpp b/launcher/src/sapphirelogin.cpp index 60cd9e8..574f5db 100644 --- a/launcher/src/sapphirelogin.cpp +++ b/launcher/src/sapphirelogin.cpp @@ -69,6 +69,6 @@ void SapphireLogin::registerAccount(const QString &lobbyUrl, const LoginInformat auth.frontierHost = document[QLatin1String("frontierHost")].toString(); auth.region = 3; - m_launcher.launchGame(*info.profile, auth); + // m_launcher.launchGame(*info.profile, auth); }); } \ No newline at end of file