From 0dd708096fe0ad27aa7c8c6e2fb67945ddb58767 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Wed, 16 Mar 2022 14:40:55 -0400 Subject: [PATCH] When out of subscription or need a license, point to Mog Station Pointing to the official launcher makes no sense because you can't even do it within there anyway. --- src/squarelauncher.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/squarelauncher.cpp b/src/squarelauncher.cpp index 7f2a59f..ed0d207 100644 --- a/src/squarelauncher.cpp +++ b/src/squarelauncher.cpp @@ -7,6 +7,8 @@ #include #include #include +#include +#include #include "launchercore.h" @@ -113,7 +115,13 @@ void SquareLauncher::login(const LoginInformation& info, const QUrl referer) { if(!playable) { auto messageBox = new QMessageBox(QMessageBox::Icon::Critical, "Failed to Login", "Your game is unplayable. Please check that you have the right license selected, and a subscription to play."); - window.addUpdateButtons(*info.settings, *messageBox); + + auto launcherButton = messageBox->addButton("Open Mog Station", QMessageBox::HelpRole); + connect(launcherButton, &QPushButton::clicked, [=] { + QDesktopServices::openUrl(QUrl("https://sqex.to/Msp")); + }); + + messageBox->addButton(QMessageBox::StandardButton::Ok); messageBox->show();