1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-21 04:07:46 +00:00

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.
This commit is contained in:
Joshua Goins 2023-09-23 13:01:02 -04:00
parent 7f4827cf85
commit 3db390cacd

View file

@ -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`.")); 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) { } 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.")); 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 { } else {
Q_EMIT window.loginError(i18n("Unknown error when registering the session.")); Q_EMIT window.loginError(i18n("Unknown error when registering the session."));
} }