mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-16 12:17:55 +00:00
Compare commits
3 Commits
0d6e86dcfc
...
44c5b76e42
Author | SHA1 | Date | |
---|---|---|---|
![]() |
44c5b76e42 | ||
![]() |
a163877413 | ||
![]() |
417badc55c |
@ -2010,9 +2010,14 @@ void MainWindow::ShowAchievementSettings()
|
|||||||
|
|
||||||
void MainWindow::OnHardcoreChanged()
|
void MainWindow::OnHardcoreChanged()
|
||||||
{
|
{
|
||||||
if (AchievementManager::GetInstance().IsHardcoreModeActive())
|
bool hardcore_active = AchievementManager::GetInstance().IsHardcoreModeActive();
|
||||||
|
if (hardcore_active)
|
||||||
Settings::Instance().SetDebugModeEnabled(false);
|
Settings::Instance().SetDebugModeEnabled(false);
|
||||||
emit Settings::Instance().EmulationStateChanged(Core::GetState(Core::System::GetInstance()));
|
// EmulationStateChanged causes several dialogs to redraw, including anything affected by hardcore
|
||||||
|
// 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
|
||||||
|
|
||||||
|
@ -267,6 +267,7 @@ 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user