summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRevo <projectrevotpp@hotmail.com>2020-11-26 12:15:18 -0500
committerGitHub <noreply@github.com>2020-11-26 12:15:18 -0500
commit6e80109ce68a37ba97c43cef6a0626a1ce470c4e (patch)
tree34c3b3f68968b6f18c1324d1364a398bbff4b653 /include
parent277ad419e7fbc91baeb9298c3fd0017a066adc21 (diff)
parent2023adf209156d9c461197eefac93b5216fbc2f3 (diff)
Merge pull request #158 from mparisi20/code_801E07E8
decompile code_801E07E8 and code_801E0810.o
Diffstat (limited to 'include')
-rw-r--r--include/GSfilterModule.h24
-rw-r--r--include/SDK/OS/OSCache.h1
-rw-r--r--include/gUnkClass20.h30
3 files changed, 55 insertions, 0 deletions
diff --git a/include/GSfilterModule.h b/include/GSfilterModule.h
new file mode 100644
index 0000000..6b9af03
--- /dev/null
+++ b/include/GSfilterModule.h
@@ -0,0 +1,24 @@
+#ifndef POKEREVO_GSFILTERMODULE_H
+#define POKEREVO_GSFILTERMODULE_H
+
+#include "gUnkClass20.h"
+
+struct GSfilterModule
+{
+ u8 unk0[0x10]; // pad
+ u32 unk10;
+ u8 unk14[0x3D8]; // pad
+ gUnkClass20* unk3EC; // pointer to array
+ gUnkClass21* unk3F0;
+ u8 unk3F4[0x18]; // pad
+ u8 unk40C; // counter
+};
+
+extern "C"
+{
+extern GSfilterModule* lbl_8063F410;
+// TODO: member function
+gUnkClass20* func_801FB80C(GSfilterModule*);
+}
+
+#endif //POKEREVO_GSFILTERMODULE_H
diff --git a/include/SDK/OS/OSCache.h b/include/SDK/OS/OSCache.h
index 75dd2ca..73dcc94 100644
--- a/include/SDK/OS/OSCache.h
+++ b/include/SDK/OS/OSCache.h
@@ -5,6 +5,7 @@
extern "C" {
#endif
+void DCFlushRange(void* startAddr, u32 nBytes);
void DCInvalidateRange(void* startAddr, u32 nBytes);
void LCEnable(void);
#define LC_BASE (0xE000 << 16)
diff --git a/include/gUnkClass20.h b/include/gUnkClass20.h
new file mode 100644
index 0000000..141aff8
--- /dev/null
+++ b/include/gUnkClass20.h
@@ -0,0 +1,30 @@
+#ifndef POKEREVO_GUNKCLASS20_H
+#define POKEREVO_GUNKCLASS20_H
+
+// size == 0x4
+struct gUnkClass21
+{
+ u8 unk0;
+ u8 unk1;
+ u8 unk2;
+ u8 unk3;
+};
+
+// size == 0x8
+struct gUnkClass20
+{
+ u8 unk0; // index into an array of gUnkClass21.
+ // id?
+ u8 unk1; // func_801FB80C returns first instance where this is 0.
+ // "allocated" flag?
+ u8 unk2;
+ u8 unk3;
+ u32 unk4;
+
+ gUnkClass20* func_801E0810(u32 p2, u8 p3, u8 p4);
+ void func_801E0904();
+ void func_801E0978(gUnkClass21* p2) const;
+ void func_801E09DC(gUnkClass21* p2) const;
+};
+
+#endif //POKEREVO_GUNKCLASS20_H