Delete Invalid RetroAchievements Tokens

This commit is contained in:
LillyJadeKatrin
2025-11-06 19:42:14 -05:00
parent b1f27b6cfd
commit 1ad0a771d9
+2
View File
@@ -927,6 +927,7 @@ void AchievementManager::LoginCallback(int result, const char* error_message, rc
{
WARN_LOG_FMT(ACHIEVEMENTS, "Failed to login {} to RetroAchievements server.",
Config::Get(Config::RA_USERNAME));
Config::SetBaseOrCurrent(Config::RA_API_TOKEN, "");
instance.update_event.Trigger({.failed_login_code = result});
return;
}
@@ -1030,6 +1031,7 @@ void AchievementManager::LoadGameCallback(int result, const char* error_message,
OSD::Duration::VERY_LONG, OSD::Color::RED);
OSD::AddMessage("Please close the game to log back in before continuing.",
OSD::Duration::VERY_LONG, OSD::Color::RED);
Config::SetBaseOrCurrent(Config::RA_API_TOKEN, "");
return;
}