git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4817 fc73d0e0-1445-4013-8a0c-d673dee63da5

This commit is contained in:
Spoike 2015-01-02 06:02:38 +00:00
parent 68bc3e753a
commit 6ba09e4cce
2 changed files with 6 additions and 0 deletions

View file

@ -2032,8 +2032,10 @@ void Sys_SendKeyEvents (void)
sys_parentheight = strtoul(Cmd_Argv(4), NULL, 0); sys_parentheight = strtoul(Cmd_Argv(4), NULL, 0);
sys_parentwindow = (HWND)(intptr_t)strtoull(Cmd_Argv(5), NULL, 16); sys_parentwindow = (HWND)(intptr_t)strtoull(Cmd_Argv(5), NULL, 16);
} }
#if !defined(CLIENTONLY) || defined(CSQC_DAT) || defined(MENU_DAT)
else if (QCExternalDebuggerCommand(text)) else if (QCExternalDebuggerCommand(text))
/*handled elsewhere*/; /*handled elsewhere*/;
#endif
else else
{ {
Cbuf_AddText(text, RESTRICT_LOCAL); Cbuf_AddText(text, RESTRICT_LOCAL);

View file

@ -166,6 +166,7 @@ qboolean QCExternalDebuggerCommand(char *text)
if (sv.world.progs && sv.world.progs->EvaluateDebugString) if (sv.world.progs && sv.world.progs->EvaluateDebugString)
values[1] = sv.world.progs->EvaluateDebugString(sv.world.progs, variable); values[1] = sv.world.progs->EvaluateDebugString(sv.world.progs, variable);
#endif #endif
#ifndef SERVERONLY
#ifdef CSQC_DAT #ifdef CSQC_DAT
if (csqc_world.progs && csqc_world.progs->EvaluateDebugString) if (csqc_world.progs && csqc_world.progs->EvaluateDebugString)
values[2] = csqc_world.progs->EvaluateDebugString(csqc_world.progs, variable); values[2] = csqc_world.progs->EvaluateDebugString(csqc_world.progs, variable);
@ -173,6 +174,7 @@ qboolean QCExternalDebuggerCommand(char *text)
#ifdef MENU_DAT #ifdef MENU_DAT
if (menu_world.progs && menu_world.progs->EvaluateDebugString) if (menu_world.progs && menu_world.progs->EvaluateDebugString)
values[3] = menu_world.progs->EvaluateDebugString(menu_world.progs, variable); values[3] = menu_world.progs->EvaluateDebugString(menu_world.progs, variable);
#endif
#endif #endif
} }
@ -206,6 +208,7 @@ qboolean QCExternalDebuggerCommand(char *text)
filename = Cmd_Argv(2); filename = Cmd_Argv(2);
line = strtoul(Cmd_Argv(3), NULL, 0); line = strtoul(Cmd_Argv(3), NULL, 0);
//togglebreakpoint just finds the first statement (via the function table for file names) with the specified line number, and sets some unused high bit that causes it to be an invalid opcode. //togglebreakpoint just finds the first statement (via the function table for file names) with the specified line number, and sets some unused high bit that causes it to be an invalid opcode.
#ifndef SERVERONLY
#ifdef CSQC_DAT #ifdef CSQC_DAT
if (csqc_world.progs && csqc_world.progs->ToggleBreak) if (csqc_world.progs && csqc_world.progs->ToggleBreak)
csqc_world.progs->ToggleBreak(csqc_world.progs, filename, line, mode); csqc_world.progs->ToggleBreak(csqc_world.progs, filename, line, mode);
@ -214,6 +217,7 @@ qboolean QCExternalDebuggerCommand(char *text)
if (menu_world.progs && menu_world.progs->ToggleBreak) if (menu_world.progs && menu_world.progs->ToggleBreak)
menu_world.progs->ToggleBreak(menu_world.progs, filename, line, mode); menu_world.progs->ToggleBreak(menu_world.progs, filename, line, mode);
#endif #endif
#endif
#ifndef CLIENTONLY #ifndef CLIENTONLY
if (sv.world.progs && sv.world.progs->ToggleBreak) if (sv.world.progs && sv.world.progs->ToggleBreak)
sv.world.progs->ToggleBreak(sv.world.progs, filename, line, mode); sv.world.progs->ToggleBreak(sv.world.progs, filename, line, mode);