Compare commits

..

1 Commits

Author SHA1 Message Date
Jordan Woyak
512a151d5c
Merge 6da3f5f26a into 5800b874d7 2025-06-08 23:20:32 -05:00
2 changed files with 2 additions and 8 deletions

View File

@ -2010,14 +2010,9 @@ void MainWindow::ShowAchievementSettings()
void MainWindow::OnHardcoreChanged() void MainWindow::OnHardcoreChanged()
{ {
bool hardcore_active = AchievementManager::GetInstance().IsHardcoreModeActive(); if (AchievementManager::GetInstance().IsHardcoreModeActive())
if (hardcore_active)
Settings::Instance().SetDebugModeEnabled(false); Settings::Instance().SetDebugModeEnabled(false);
// EmulationStateChanged causes several dialogs to redraw, including anything affected by hardcore emit Settings::Instance().EmulationStateChanged(Core::GetState(Core::System::GetInstance()));
// mode. Every dialog that depends on hardcore mode is redrawn by EmulationStateChanged.
if (hardcore_active != m_former_hardcore_setting)
emit Settings::Instance().EmulationStateChanged(Core::GetState(Core::System::GetInstance()));
m_former_hardcore_setting = hardcore_active;
} }
#endif // USE_RETRO_ACHIEVEMENTS #endif // USE_RETRO_ACHIEVEMENTS

View File

@ -267,7 +267,6 @@ private:
#ifdef USE_RETRO_ACHIEVEMENTS #ifdef USE_RETRO_ACHIEVEMENTS
AchievementsWindow* m_achievements_window = nullptr; AchievementsWindow* m_achievements_window = nullptr;
Config::ConfigChangedCallbackID m_config_changed_callback_id; Config::ConfigChangedCallbackID m_config_changed_callback_id;
bool m_former_hardcore_setting = false;
#endif // USE_RETRO_ACHIEVEMENTS #endif // USE_RETRO_ACHIEVEMENTS
AssemblerWidget* m_assembler_widget; AssemblerWidget* m_assembler_widget;