Compare commits

..

1 Commits

Author SHA1 Message Date
sepalani
b4c04d461b
Merge fc2ae3b880 into 5800b874d7 2025-06-09 10:33:59 -03:00
2 changed files with 2 additions and 8 deletions

View File

@ -2025,14 +2025,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

@ -270,7 +270,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;