From 3db390cacdd1effe439749bc6703649a7ba27419 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sat, 23 Sep 2023 13:01:02 -0400 Subject: [PATCH] Add specific error message for unsupported game versions Still don't know exactly why this happens yet, but sometimes the patching server will return a 410. --- launcher/src/squarelauncher.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/launcher/src/squarelauncher.cpp b/launcher/src/squarelauncher.cpp index 564a47c..1b319e5 100644 --- a/launcher/src/squarelauncher.cpp +++ b/launcher/src/squarelauncher.cpp @@ -211,6 +211,8 @@ QCoro::Task<> SquareLauncher::registerSession(const LoginInformation &info) i18n("SSL handshake error detected. If you are using OpenSUSE or Fedora, try running `update-crypto-policies --set LEGACY`.")); } else if (reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt() == 405) { Q_EMIT window.loginError(i18n("The game failed the anti-tamper check. Restore the game to the original state and try updating again.")); + } else if (reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt() == 410) { + Q_EMIT window.loginError(i18n("This game version is no longer supported.")); } else { Q_EMIT window.loginError(i18n("Unknown error when registering the session.")); }