From e9da2a48324191421fd29325820e9b50fa8bcd7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20Vanda=C3=ABle?= Date: Sun, 11 Jan 2026 21:48:03 +0100 Subject: Settings: Simplify debug mode We now just pass a signal to tell the UI that hardcore mode has been turned on/off, and we replace Settings::IsDebugModeEnabled with Config::IsDebuggingEnabled, which always returns false if hardcore is on. --- Source/Core/DolphinQt/MainWindow.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Source/Core/DolphinQt/MainWindow.cpp') diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp index 7905402013..64a166efba 100644 --- a/Source/Core/DolphinQt/MainWindow.cpp +++ b/Source/Core/DolphinQt/MainWindow.cpp @@ -263,8 +263,6 @@ MainWindow::MainWindow(Core::System& system, std::unique_ptr boo #ifdef USE_RETRO_ACHIEVEMENTS AchievementManager::GetInstance().Init(reinterpret_cast(winId())); - if (AchievementManager::GetInstance().IsHardcoreModeActive()) - Settings::Instance().SetDebugModeEnabled(false); // This needs to trigger on both RA_HARDCORE_ENABLED and RA_ENABLED m_config_changed_callback_id = Config::AddConfigChangedCallback( [this] { QueueOnObject(this, [this] { this->OnHardcoreChanged(); }); }); @@ -2085,8 +2083,6 @@ void MainWindow::ShowAchievementSettings() void MainWindow::OnHardcoreChanged() { bool hardcore_active = AchievementManager::GetInstance().IsHardcoreModeActive(); - if (hardcore_active) - Settings::Instance().SetDebugModeEnabled(false); // 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) -- cgit v1.2.3