mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
Added message for bad RetroAchievements token
Displays a different message at game launch if RetroAchievements fails specifically due to an invalid or expired API token, instructing the player to log back in with the game closed.
This commit is contained in:
@@ -1022,6 +1022,16 @@ void AchievementManager::LoadGameCallback(int result, const char* error_message,
|
||||
OSD::Color::RED);
|
||||
return;
|
||||
}
|
||||
if (result == RC_LOGIN_REQUIRED || result == RC_INVALID_CREDENTIALS || result == RC_EXPIRED_TOKEN)
|
||||
{
|
||||
WARN_LOG_FMT(ACHIEVEMENTS, "Invalid/expired RetroAchievements API token.");
|
||||
OSD::AddMessage(
|
||||
"You have been logged out from RetroAchievements due to invalid/expired credentials.",
|
||||
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);
|
||||
return;
|
||||
}
|
||||
|
||||
auto* game = rc_client_get_game_info(client);
|
||||
if (result == RC_OK)
|
||||
|
||||
Reference in New Issue
Block a user