summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/global.h2
-rw-r--r--include/main.h3
-rw-r--r--include/structs.h35
3 files changed, 39 insertions, 1 deletions
diff --git a/include/global.h b/include/global.h
index 54397f45..b872b96c 100644
--- a/include/global.h
+++ b/include/global.h
@@ -4,4 +4,6 @@
#include "function_target.h"
#include "nitro.h"
+extern void ErrorHandling(void);
+
#endif //GUARD_GLOBAL_H
diff --git a/include/main.h b/include/main.h
index 93f0fc2a..92456092 100644
--- a/include/main.h
+++ b/include/main.h
@@ -3,6 +3,7 @@
#include "FS_overlay.h"
#include "SPI_pm.h"
+#include "structs.h"
struct Unk21DBE18
{
@@ -19,7 +20,7 @@ struct Unk2106FA0
struct Unk21DBE18 * unk14;
s32 unk18;
s32 unk1C;
- s32 unk20;
+ struct UnkStruct_021C59C8 * unk20;
};
struct Unk21C4818
diff --git a/include/structs.h b/include/structs.h
index 8a34d299..8c9657be 100644
--- a/include/structs.h
+++ b/include/structs.h
@@ -4,4 +4,39 @@
#include "pokemon.h"
#include "map.h"
+// MATH
+typedef u16 MATHCRC16Table[256];
+
+struct UnkStruct_021C59C8_Sub20224 {
+ int unk_0;
+ int unk_4;
+ int unk_8;
+ u16 unk_C;
+ u16 unk_E;
+};
+
+struct UnkStruct_021C59C8_Sub_20464 {
+ u8 unk_0;
+ int unk_4;
+ int unk_8;
+ u8 unk_C;
+ u8 unk_D;
+ u8 unk_E;
+};
+
+struct UnkStruct_021C59C8 {
+ /* 0x00000 */ int unk_00000;
+ /* 0x00004 */ int unk_00004;
+ /* 0x00008 */ int unk_00008;
+ /* 0x0000C */ int unk_0000C;
+ /* 0x00010 */ int unk_00010;
+ /* 0x00014 */ MATHCRC16Table unk_00014;
+ /* 0x00214 */ u8 filler_00214[0x2004];
+ /* 0x20218 */ u8 unk_20218[8];
+ /* 0x20220 */ int unk_20220;
+ /* 0x20224 */ struct UnkStruct_021C59C8_Sub20224 unk_20224[36];
+ /* 0x20464 */ struct UnkStruct_021C59C8_Sub_20464 unk_20464[4];
+ /* 0x204A4 */ int unk_204A4;
+};
+
#endif //POKEDIAMOND_STRUCTS_H