From 8fac6061ac114da324c8ac2f4804691bcc17b015 Mon Sep 17 00:00:00 2001 From: LillyJadeKatrin Date: Wed, 24 Jul 2024 20:24:30 -0400 Subject: [PATCH] Display Achievements Message for Old Version With this change, a different message is displayed if starting a game with RetroAchievements fails due to the Dolphin version being blocked as opposed to failing because the game hash is unsupported. --- Source/Core/Core/AchievementManager.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Source/Core/Core/AchievementManager.cpp b/Source/Core/Core/AchievementManager.cpp index a1288a2b70..d2e9f90095 100644 --- a/Source/Core/Core/AchievementManager.cpp +++ b/Source/Core/Core/AchievementManager.cpp @@ -814,6 +814,15 @@ void AchievementManager::LoadGameCallback(int result, const char* error_message, rc_client_t* client, void* userdata) { AchievementManager::GetInstance().m_loading_volume.reset(nullptr); + if (result == RC_API_FAILURE) + { + WARN_LOG_FMT(ACHIEVEMENTS, "Load data request rejected for old Dolphin version."); + OSD::AddMessage("RetroAchievements no longer supports this version of Dolphin.", + OSD::Duration::VERY_LONG, OSD::Color::RED); + OSD::AddMessage("Please update Dolphin to a newer version.", OSD::Duration::VERY_LONG, + OSD::Color::RED); + return; + } if (result != RC_OK) { WARN_LOG_FMT(ACHIEVEMENTS, "Failed to load data for current game.");