mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-12-16 04:09:39 +00:00
Delete Invalid RetroAchievements Tokens
This commit is contained in:
parent
b1f27b6cfd
commit
1ad0a771d9
@ -927,6 +927,7 @@ void AchievementManager::LoginCallback(int result, const char* error_message, rc
|
|||||||
{
|
{
|
||||||
WARN_LOG_FMT(ACHIEVEMENTS, "Failed to login {} to RetroAchievements server.",
|
WARN_LOG_FMT(ACHIEVEMENTS, "Failed to login {} to RetroAchievements server.",
|
||||||
Config::Get(Config::RA_USERNAME));
|
Config::Get(Config::RA_USERNAME));
|
||||||
|
Config::SetBaseOrCurrent(Config::RA_API_TOKEN, "");
|
||||||
instance.update_event.Trigger({.failed_login_code = result});
|
instance.update_event.Trigger({.failed_login_code = result});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1030,6 +1031,7 @@ void AchievementManager::LoadGameCallback(int result, const char* error_message,
|
|||||||
OSD::Duration::VERY_LONG, OSD::Color::RED);
|
OSD::Duration::VERY_LONG, OSD::Color::RED);
|
||||||
OSD::AddMessage("Please close the game to log back in before continuing.",
|
OSD::AddMessage("Please close the game to log back in before continuing.",
|
||||||
OSD::Duration::VERY_LONG, OSD::Color::RED);
|
OSD::Duration::VERY_LONG, OSD::Color::RED);
|
||||||
|
Config::SetBaseOrCurrent(Config::RA_API_TOKEN, "");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user