summaryrefslogtreecommitdiff
path: root/include/Unknown
diff options
context:
space:
mode:
authorYanis002 <35189056+Yanis002@users.noreply.github.com>2025-02-12 12:50:35 +0100
committerYanis002 <35189056+Yanis002@users.noreply.github.com>2025-02-12 12:50:35 +0100
commit27ae64893aec81af4c78036f309b9aa9e7874c2e (patch)
tree18ca5109453698d6069817ce572c8aaef6eb8cf1 /include/Unknown
parent142e17b99d097296027f576a7ac33ae209fa80df (diff)
started debug display/error
Diffstat (limited to 'include/Unknown')
-rw-r--r--include/Unknown/UnkStruct_02063220.hpp48
-rw-r--r--include/Unknown/UnkStruct_0206322c.hpp39
-rw-r--r--include/Unknown/UnkStruct_020ee734.hpp7
3 files changed, 94 insertions, 0 deletions
diff --git a/include/Unknown/UnkStruct_02063220.hpp b/include/Unknown/UnkStruct_02063220.hpp
new file mode 100644
index 00000000..ccdaea85
--- /dev/null
+++ b/include/Unknown/UnkStruct_02063220.hpp
@@ -0,0 +1,48 @@
+#pragma once
+
+#include "global.h"
+#include "types.h"
+
+struct Registers {
+ /* 00 */ unk32 mUnk_00; // CPSR
+ /* 04 */ unk32 mUnk_04[12];
+ /* 08 */ unk32 mUnk_08;
+ /* 0C */ unk32 mUnk_0C; // SP
+ /* 10 */ unk32 mUnk_10; // LR
+ /* 14 */ unk32 mUnk_14; // PC
+ /* 18 */ unk32 mUnk_18;
+ /* 1C */ unk32 mUnk_1C;
+ /* 20 */ unk32 mUnk_20;
+ /* 24 */ unk32 mUnk_24;
+ /* 28 */ unk32 mUnk_28;
+ /* 2C */ unk32 mUnk_2C;
+ /* 30 */ unk32 mUnk_30;
+ /* 34 */ unk32 mUnk_34;
+ /* 38 */ unk32 mUnk_38; // CP15
+ /* 3C */ unk32 mUnk_3C; // SPSR
+};
+
+struct UnkStruct_02063220_08 {
+ unk32 mUnk_00;
+
+ void func_0202fd9c(unk32);
+};
+
+class UnkStruct_02063220 {
+public:
+ /* 00 */ char* path;
+ /* 04 */ u8 mUnk_04;
+ /* 05 */ u8 mUnk_05;
+ /* 06 */ unk16 mUnk_06;
+ /* 08 */ UnkStruct_02063220_08 mUnk_08;
+
+ void DisplayAssertError(char* file, u16 line, char* msg, ...);
+ void DisplayException(Registers* param1);
+ static bool func_0202f3f0(unk32 param1);
+ static unk32 func_0202f400(unk32 param1);
+ void func_0202f4b4(void);
+ void func_0202f500(void);
+ void func_0202f754(unk32);
+};
+
+extern UnkStruct_02063220 data_02063220;
diff --git a/include/Unknown/UnkStruct_0206322c.hpp b/include/Unknown/UnkStruct_0206322c.hpp
new file mode 100644
index 00000000..d28cd0f4
--- /dev/null
+++ b/include/Unknown/UnkStruct_0206322c.hpp
@@ -0,0 +1,39 @@
+#pragma once
+
+#include "types.h"
+
+#define SCREEN_WIDTH 32
+#define SCREEN_HEIGHT 24
+
+struct Screen {
+ /* 000 */ unk16 mUnk_00;
+ /* 002 */ unk16 mUnk_02;
+ /* 004 */ unk16 mUnk_04;
+ /* 004 */ unk16 mUnk_06;
+ /* 008 */ unk32 mUnk_08;
+ /* 00c */ u16 data[SCREEN_WIDTH * SCREEN_HEIGHT];
+ /* 60c */
+};
+
+class UnkStruct_0206322c {
+public:
+ /* 000 */ UNK_PTR mUnk_00; // tile
+ /* 004 */ UNK_PTR mUnk_04; // palette
+ /* 008 */ Screen topScreen;
+ /* 614 */ Screen bottomScreen;
+ /* c20 */
+
+ // loads the debug font (palette and tile files)
+ void func_02030354(bool doTopScreen, bool doBottomScreen);
+
+ // ctor?
+ void* func_02030408(void);
+
+ // copy the screen data to VRAM
+ void func_02030464(bool doTopScreen, bool doBottomScreen);
+
+ // reset screen data
+ void func_020304a8(bool doTopScreen, bool doBottomScreen);
+};
+
+extern UnkStruct_0206322c data_0206322c;
diff --git a/include/Unknown/UnkStruct_020ee734.hpp b/include/Unknown/UnkStruct_020ee734.hpp
new file mode 100644
index 00000000..18e24d39
--- /dev/null
+++ b/include/Unknown/UnkStruct_020ee734.hpp
@@ -0,0 +1,7 @@
+#pragma once
+
+struct UnkStruct_020ee734 {
+ void func_ov000_020d6620(void);
+};
+
+extern UnkStruct_020ee734 data_ov000_020ee734;