summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/MainWindow.cpp
diff options
context:
space:
mode:
authorLillyJadeKatrin <lilly.kitty.1988@gmail.com>2024-10-03 09:01:00 -0400
committerLillyJadeKatrin <lilly.kitty.1988@gmail.com>2024-10-03 09:01:00 -0400
commita36746a79a603a5b1ae96aadd52fa2492a760d58 (patch)
treec68e4b040e373f7dcfaaacf795072e6dcf97a4b0 /Source/Core/DolphinQt/MainWindow.cpp
parent72f682ab13edc49e40cd5e52f24a16feb60f5de8 (diff)
Turn off debug mode if hardcore is active on emulator start
Found this bug while testing; if I manually edit the config files while Dolphin is closed I was able to get debug and hardcore on at the same time, this resolves that.
Diffstat (limited to 'Source/Core/DolphinQt/MainWindow.cpp')
-rw-r--r--Source/Core/DolphinQt/MainWindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp
index 5c3ca31d5a..1268d215d3 100644
--- a/Source/Core/DolphinQt/MainWindow.cpp
+++ b/Source/Core/DolphinQt/MainWindow.cpp
@@ -269,6 +269,8 @@ MainWindow::MainWindow(std::unique_ptr<BootParameters> boot_parameters,
#ifdef USE_RETRO_ACHIEVEMENTS
AchievementManager::GetInstance().Init();
+ if (AchievementManager::GetInstance().IsHardcoreModeActive())
+ Settings::Instance().SetDebugModeEnabled(false);
#endif // USE_RETRO_ACHIEVEMENTS
#if defined(__unix__) || defined(__unix) || defined(__APPLE__)