Skip to content

Commit

Permalink
Merge pull request #12870 from LillyJadeKatrin/retroachievements-gdb-…
Browse files Browse the repository at this point in the history
…disable

Disable GDB Stub in Hardcore Mode
  • Loading branch information
AdmiralCurtiss committed Jun 17, 2024
2 parents 69fc754 + ff25403 commit a0d8c10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Core/Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit a0d8c10

Please sign in to comment.