From a36746a79a603a5b1ae96aadd52fa2492a760d58 Mon Sep 17 00:00:00 2001 From: LillyJadeKatrin Date: Thu, 3 Oct 2024 09:01:00 -0400 Subject: [PATCH] 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. --- Source/Core/DolphinQt/MainWindow.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 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__)