add dprintf from ts-ddraw

This commit is contained in:
FunkyFr3sh 2019-04-14 07:28:06 +02:00
parent 0600b75932
commit 9aa457c8b8
3 changed files with 34 additions and 1 deletions

View file

@ -8,6 +8,7 @@ double CounterStop();
void DebugPrint(const char *format, ...);
void DrawFrameInfoStart();
void DrawFrameInfoEnd();
int dprintf(const char *fmt, ...);
extern double DebugFrameTime;
extern DWORD DebugFrameCount;
@ -24,6 +25,8 @@ extern DWORD DebugFrameCount;
#ifdef _DEBUG_S
#define printf(format, ...) DebugPrint("xDBG " format, ##__VA_ARGS__)
#else
#define printf(format, ...) dprintf(format, ##__VA_ARGS__)
#endif
#else