diff options
| author | Joshua Vandaƫle <joshua@vandaele.software> | 2026-01-11 21:48:03 +0100 |
|---|---|---|
| committer | Joshua Vandaƫle <joshua@vandaele.software> | 2026-11-16 01:01:12 +0100 |
| commit | e9da2a48324191421fd29325820e9b50fa8bcd7e (patch) | |
| tree | a25402614aa792e13040cd718b0002c2f0a77232 /Source/Core/DolphinQt/MainWindow.cpp | |
| parent | 2d451da728fe0db49fe9319db511834d03b995c2 (diff) | |
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.
Diffstat (limited to 'Source/Core/DolphinQt/MainWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/MainWindow.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
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<BootParameters> boo #ifdef USE_RETRO_ACHIEVEMENTS AchievementManager::GetInstance().Init(reinterpret_cast<void*>(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) |
