mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-04-22 10:50:58 +00:00
c_console: Add debugger hooks for logging events in PrintString
This commit is contained in:
parent
a9ee0b7da3
commit
37ec5d6b6a
1 changed files with 2 additions and 0 deletions
|
@ -65,6 +65,7 @@
|
|||
#include "g_input.h"
|
||||
#include "c_commandbuffer.h"
|
||||
#include "vm.h"
|
||||
#include "common/scripting/dap/RuntimeEvents.h"
|
||||
|
||||
#define LEFTMARGIN 8
|
||||
#define RIGHTMARGIN 8
|
||||
|
@ -444,6 +445,7 @@ int PrintString (int iprintlevel, const char *outline)
|
|||
{
|
||||
WriteLineToLog(Logfile, outline);
|
||||
}
|
||||
DebugServer::RuntimeEvents::EmitLogEvent(iprintlevel, outline);
|
||||
return count;
|
||||
}
|
||||
return 0; // Don't waste time on calculating this if nothing at all was printed...
|
||||
|
|
Loading…
Reference in a new issue