Don't show RetroAchievements login failures (and don't retry) if the user has disabled them.

This commit is contained in:
Henrik Rydgård 2023-08-28 14:38:32 +02:00
parent 9305d235e0
commit 9e708fc82d

View file

@ -533,7 +533,7 @@ void Idle() {
// If failed to log in, occasionally try again while the user is at the menu.
// Do not try if if in-game, that could get confusing.
if (GetUIState() == UISTATE_MENU && now > g_lastLoginAttemptTime + LOGIN_ATTEMPT_INTERVAL_S) {
if (g_Config.bAchievementsEnable && GetUIState() == UISTATE_MENU && now > g_lastLoginAttemptTime + LOGIN_ATTEMPT_INTERVAL_S) {
g_lastLoginAttemptTime = now;
if (g_rcClient && IsLoggedIn()) {
return; // All good.
@ -740,7 +740,7 @@ void SetGame(const Path &path, FileLoader *fileLoader) {
}
if (!g_rcClient || !IsLoggedIn()) {
if (HasToken()) {
if (g_Config.bAchievementsEnable && HasToken()) {
ShowNotLoggedInMessage();
}
// Nothing to do.