summaryrefslogtreecommitdiff
path: root/src/core/Debug.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-03-26 14:16:06 +0100
committeraap <aap@papnet.eu>2020-03-27 10:04:45 +0100
commitf0dfaac838fdbb90783609bf4e45518ccf853708 (patch)
tree0091bdfdf4a7149265af7a596906a9cf4f50a55c /src/core/Debug.h
parent8703758a7b1d0fe1f8c837bb0a114d1e03145d1e (diff)
Finished CCam; various smaller things
Diffstat (limited to 'src/core/Debug.h')
-rw-r--r--src/core/Debug.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/core/Debug.h b/src/core/Debug.h
index 444a0cf5..d169a0b4 100644
--- a/src/core/Debug.h
+++ b/src/core/Debug.h
@@ -6,15 +6,29 @@ class CDebug
{
MAX_LINES = 15,
MAX_STR_LEN = 80,
+
+ MAX_SCREEN_STRS = 100,
};
static int16 ms_nCurrentTextLine;
static char ms_aTextBuffer[MAX_LINES][MAX_STR_LEN];
+ // custom
+ struct ScreenStr {
+ int x, y;
+ char str[256];
+ };
+ static ScreenStr ms_aScreenStrs[MAX_SCREEN_STRS];
+ static int ms_nScreenStrs;
+
public:
static void DebugInitTextBuffer();
static void DebugDisplayTextBuffer();
static void DebugAddText(const char *str);
+
+ // custom
+ static void PrintAt(const char *str, int x, int y);
+ static void DisplayScreenStrings();
};
extern bool gbDebugStuffInRelease;