summaryrefslogtreecommitdiff
path: root/src/core/Debug.h
diff options
context:
space:
mode:
authorclaude-bot <[email protected]>2026-07-13 12:27:07 +0000
committerclaude-bot <[email protected]>2026-07-13 12:27:07 +0000
commit9f61c9e6ac6b1ac5692cf6352d2ebbd47a31a686 (patch)
treea84756b82513739a2672db3a1f0ec579db6d18ff /src/core/Debug.h
downloadre3-miami.tar.gz
re3-miami.zip
Import Cai1Hsu/re3 @ miami (reVC / GTA:VC decompilation)HEADmiami
Snapshot import (no upstream history) into git.ancap.in.ua/claude, per @lzcnt. Source: https://github.com/Cai1Hsu/re3 branch miami.
Diffstat (limited to 'src/core/Debug.h')
-rw-r--r--src/core/Debug.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/core/Debug.h b/src/core/Debug.h
new file mode 100644
index 0000000..4a25bf4
--- /dev/null
+++ b/src/core/Debug.h
@@ -0,0 +1,45 @@
+#pragma once
+
+class CDebug
+{
+ enum
+ {
+ MAX_LINES = 15,
+ MAX_STR_LEN = 80,
+
+ MAX_SCREEN_STRS = 100,
+ MAX_DEBUG_LINES = 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;
+
+ struct Line {
+ CVector p1, p2;
+ uint32 c1, c2;
+ };
+ static Line ms_aLines[MAX_DEBUG_LINES];
+ static int ms_nLines;
+
+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();
+
+ static void AddLine(CVector p1, CVector p2, uint32 c1, uint32 c2);
+ static void DrawLines(void);
+};
+
+extern bool gbDebugStuffInRelease;