Disable GDB Stub in Hardcore Mode

This commit is contained in:
LillyJadeKatrin 2024-06-17 01:03:34 -04:00
parent 0c2b8fd587
commit ff25403e0e
1 changed files with 2 additions and 2 deletions

View File

@ -398,7 +398,7 @@ static void CpuThread(Core::System& system, const std::optional<std::string>& 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<std::string>& 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);