From ff25403e0e3a69115c821bc45aba2d4e3980e8d4 Mon Sep 17 00:00:00 2001 From: LillyJadeKatrin Date: Mon, 17 Jun 2024 01:03:34 -0400 Subject: [PATCH] Disable GDB Stub in Hardcore Mode --- Source/Core/Core/Core.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/Core.cpp b/Source/Core/Core/Core.cpp index dcc766febc..fe4bd4079d 100644 --- a/Source/Core/Core/Core.cpp +++ b/Source/Core/Core/Core.cpp @@ -398,7 +398,7 @@ static void CpuThread(Core::System& system, const std::optional& sa { #ifndef _WIN32 std::string gdb_socket = Config::Get(Config::MAIN_GDB_SOCKET); - if (!gdb_socket.empty()) + if (!gdb_socket.empty() && !AchievementManager::GetInstance().IsHardcoreModeActive()) { GDBStub::InitLocal(gdb_socket.data()); CPUSetInitialExecutionState(true); @@ -407,7 +407,7 @@ static void CpuThread(Core::System& system, const std::optional& sa #endif { int gdb_port = Config::Get(Config::MAIN_GDB_PORT); - if (gdb_port > 0) + if (gdb_port > 0 && !AchievementManager::GetInstance().IsHardcoreModeActive()) { GDBStub::Init(gdb_port); CPUSetInitialExecutionState(true);