2020-03-22 15:23:40 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class CDebug
|
|
|
|
{
|
2020-03-24 08:56:37 +01:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
MAX_LINES = 15,
|
|
|
|
MAX_STR_LEN = 80,
|
2020-03-26 14:16:06 +01:00
|
|
|
|
|
|
|
MAX_SCREEN_STRS = 100,
|
2020-03-24 08:56:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
static int16 ms_nCurrentTextLine;
|
|
|
|
static char ms_aTextBuffer[MAX_LINES][MAX_STR_LEN];
|
2020-03-22 15:23:40 +01:00
|
|
|
|
2020-03-26 14:16:06 +01:00
|
|
|
// custom
|
|
|
|
struct ScreenStr {
|
|
|
|
int x, y;
|
|
|
|
char str[256];
|
|
|
|
};
|
|
|
|
static ScreenStr ms_aScreenStrs[MAX_SCREEN_STRS];
|
|
|
|
static int ms_nScreenStrs;
|
|
|
|
|
2020-03-22 15:23:40 +01:00
|
|
|
public:
|
|
|
|
static void DebugInitTextBuffer();
|
|
|
|
static void DebugDisplayTextBuffer();
|
2020-03-24 08:56:37 +01:00
|
|
|
static void DebugAddText(const char *str);
|
2020-03-26 14:16:06 +01:00
|
|
|
|
|
|
|
// custom
|
|
|
|
static void PrintAt(const char *str, int x, int y);
|
|
|
|
static void DisplayScreenStrings();
|
2020-03-22 17:19:07 +01:00
|
|
|
};
|
2020-03-24 08:56:37 +01:00
|
|
|
|
|
|
|
extern bool gbDebugStuffInRelease;
|