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.
This commit is contained in:
LillyJadeKatrin 2024-09-10 08:18:38 -04:00
parent 5fe9e2f6ed
commit 28cd3e732d
1 changed files with 1 additions and 5 deletions

View File

@ -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()