From cd9284d8762840750926b22a7b78badfcd666031 Mon Sep 17 00:00:00 2001 From: HarrievG Date: Thu, 13 May 2021 09:26:16 +0200 Subject: [PATCH] - Debugger is guarded behind tools. --- neo/framework/Common.cpp | 2 ++ neo/sys/win32/win_main.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/neo/framework/Common.cpp b/neo/framework/Common.cpp index 6edfb00a..f0844b68 100644 --- a/neo/framework/Common.cpp +++ b/neo/framework/Common.cpp @@ -3310,7 +3310,9 @@ bool idCommonLocal::GetAdditionalFunction(idCommon::FunctionType ft, idCommon::F void idCommonLocal::DebuggerCheckBreakpoint(idInterpreter* interpreter, idProgram* program, int instructionPointer) { +#ifdef ID_ALLOW_TOOLS DebuggerServerCheckBreakpoint(interpreter, program, instructionPointer); +#endif } idGameCallbacks gameCallbacks; diff --git a/neo/sys/win32/win_main.cpp b/neo/sys/win32/win_main.cpp index 96a9a66a..cbb235bb 100644 --- a/neo/sys/win32/win_main.cpp +++ b/neo/sys/win32/win_main.cpp @@ -992,7 +992,10 @@ int main(int argc, char *argv[]) { // Launch the script debugger if ( strstr( GetCommandLine(), "+debugger" ) ) { + +#ifdef ID_ALLOW_TOOLS DebuggerClientInit(GetCommandLine()); +#endif return 0; }