mirror of
https://github.com/XboxDev/nxdk.git
synced 2026-03-07 08:38:06 +00:00
24 lines
526 B
C
24 lines
526 B
C
#include <windows.h>
|
|
#include <winnt.h>
|
|
|
|
#include <string.h>
|
|
|
|
BOOL IsDebuggerPresent (VOID)
|
|
{
|
|
// FIXME: Can we detect debugger presence on the Xbox?
|
|
return FALSE;
|
|
}
|
|
|
|
void WINAPI OutputDebugStringA (LPCTSTR lpOutputString)
|
|
{
|
|
ANSI_STRING s;
|
|
|
|
s.Buffer = (LPSTR)lpOutputString;
|
|
s.Length = (USHORT)strlen(s.Buffer);
|
|
s.MaximumLength = s.Length + 1;
|
|
|
|
__asm__ __volatile__("mov $1, %%eax\n" // $1 = BREAKPOINT_PRINT
|
|
"int $0x2D\n"
|
|
"int $3\n": :"c" (&s));
|
|
}
|