mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-20 19:57:45 +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:
parent
7f4827cf85
commit
3db390cacd
1 changed files with 2 additions and 0 deletions
|
@ -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."));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue