From 28cd3e732d0be6fb044d1dfe0fe4a267e6378aa2 Mon Sep 17 00:00:00 2001 From: LillyJadeKatrin Date: Tue, 10 Sep 2024 08:18:38 -0400 Subject: [PATCH] Properly Toggle Hardcore When Enabling RA Fixes a bug where a player could enable hardcore, disable RetroAchievements integration, show the debug menu, and re-enable the integration to get the debug menu in hardcore. --- .../DolphinQt/Achievements/AchievementSettingsWidget.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Source/Core/DolphinQt/Achievements/AchievementSettingsWidget.cpp b/Source/Core/DolphinQt/Achievements/AchievementSettingsWidget.cpp index 175d9b2f0e..34b179a9a6 100644 --- a/Source/Core/DolphinQt/Achievements/AchievementSettingsWidget.cpp +++ b/Source/Core/DolphinQt/Achievements/AchievementSettingsWidget.cpp @@ -247,11 +247,7 @@ void AchievementSettingsWidget::ToggleRAIntegration() instance.Init(); else instance.Shutdown(); - if (Config::Get(Config::RA_HARDCORE_ENABLED)) - { - emit Settings::Instance().EmulationStateChanged(Core::GetState(Core::System::GetInstance())); - emit Settings::Instance().HardcoreStateChanged(); - } + ToggleHardcore(); } void AchievementSettingsWidget::Login()