From 9e708fc82d850bd0d24c71b9da8d8e3990a61301 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 28 Aug 2023 14:38:32 +0200 Subject: [PATCH] Don't show RetroAchievements login failures (and don't retry) if the user has disabled them. --- Core/RetroAchievements.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/RetroAchievements.cpp b/Core/RetroAchievements.cpp index ff4fdbaaf2..15bfc2d2c5 100644 --- a/Core/RetroAchievements.cpp +++ b/Core/RetroAchievements.cpp @@ -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.