29 #include "../../idlib/precompiled.h"
32 #include "../../sys/win32/rc/debugger_resource.h"
61 goto DebuggerClientInitDone;
66 goto DebuggerClientInitDone;
71 DebuggerClientInitDone:
87 common->
Printf(
"Cannot run the script debugger in fullscreen mode.\n"
88 "Set r_fullscreen to 0 and vid_restart.\n" );
97 char exeFile[MAX_PATH];
98 char curDir[MAX_PATH];
101 PROCESS_INFORMATION process;
103 ZeroMemory ( &startup,
sizeof(startup) );
104 startup.cb =
sizeof(startup);
106 GetCurrentDirectory ( MAX_PATH, curDir );
108 GetModuleFileName (
NULL, exeFile, MAX_PATH );
110 CreateProcess (
NULL, (LPSTR)s,
113 CloseHandle ( process.hThread );
114 CloseHandle ( process.hProcess );
126 assert ( gDebuggerServer );
154 if ( !gDebuggerServer )
163 gDebuggerServer =
NULL;
194 gDebuggerServer =
NULL;
211 if ( !gDebuggerServer )
216 gDebuggerServer->
CheckBreakpoints ( interpreter, program, instructionPointer );
228 if ( !gDebuggerServer )
233 gDebuggerServer->
Print ( text );
rvDebuggerServer * gDebuggerServer
assert(prefInfo.fullscreenBtn)
void DebuggerServerCheckBreakpoint(idInterpreter *interpreter, idProgram *program, int instructionPointer)
idCVarSystem * cvarSystem
DWORD gDebuggerServerThreadID
void DebuggerClientLaunch(void)
HANDLE gDebuggerServerThread
bool DebuggerServerInit(void)
idRenderSystem * renderSystem
typedef HANDLE(WINAPI *PFNWGLCREATEBUFFERREGIONARBPROC)(HDC hDC
DWORD CALLBACK DebuggerThread(LPVOID param)
void Print(const char *text)
void Sleep(const int time)
static bool Activate(void)
void DebuggerServerShutdown(void)
virtual bool IsFullScreen(void) const =0
HANDLE gDebuggerGameThread
virtual const char * GetCVarString(const char *name) const =0
DWORD CALLBACK DebuggerServerThread(LPVOID param)
void DebuggerServerPrint(const char *text)
void CheckBreakpoints(idInterpreter *interpreter, idProgram *program, int instructionPointer)
virtual void Printf(const char *fmt,...) id_attribute((format(printf
bool ProcessMessages(void)
typedef LPVOID(WINAPI *PFNWGLCREATEIMAGEBUFFERI3DPROC)(HDC hDC
void DebuggerClientInit(const char *cmdline)
virtual void Quit(void)=0
bool Initialize(HINSTANCE hInstance)
char * va(const char *fmt,...)
rvDebuggerApp gDebuggerApp