1
0
mirror of https://github.com/dolphin-emu/dolphin synced 2024-07-08 20:25:52 +00:00

Disable GDB Stub in Hardcore Mode

This commit is contained in:
LillyJadeKatrin 2024-06-17 01:03:34 -04:00
parent 0c2b8fd587
commit ff25403e0e

View File

@ -398,7 +398,7 @@ static void CpuThread(Core::System& system, const std::optional<std::string>& sa
{ {
#ifndef _WIN32 #ifndef _WIN32
std::string gdb_socket = Config::Get(Config::MAIN_GDB_SOCKET); 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()); GDBStub::InitLocal(gdb_socket.data());
CPUSetInitialExecutionState(true); CPUSetInitialExecutionState(true);
@ -407,7 +407,7 @@ static void CpuThread(Core::System& system, const std::optional<std::string>& sa
#endif #endif
{ {
int gdb_port = Config::Get(Config::MAIN_GDB_PORT); int gdb_port = Config::Get(Config::MAIN_GDB_PORT);
if (gdb_port > 0) if (gdb_port > 0 && !AchievementManager::GetInstance().IsHardcoreModeActive())
{ {
GDBStub::Init(gdb_port); GDBStub::Init(gdb_port);
CPUSetInitialExecutionState(true); CPUSetInitialExecutionState(true);