summaryrefslogtreecommitdiff
path: root/arm9/lib/src/GX_state.c
diff options
context:
space:
mode:
authorCleverking2003 <30466983+Cleverking2003@users.noreply.github.com>2020-05-19 20:44:46 +0300
committerGitHub <noreply@github.com>2020-05-19 20:44:46 +0300
commit07c521e0fb29afac447846c52379fe6874c08a3e (patch)
tree0d390f46bea9248cbe3135c8c934510b5fc6cfec /arm9/lib/src/GX_state.c
parent57724b2acd34b70c1cbd0f4a9c786b08c0ffef5e (diff)
parent28588d4a447def7794c3bb2a8dc6bb7ed60c44e5 (diff)
Merge pull request #92 from Made-s/master
Decompile all of GX
Diffstat (limited to 'arm9/lib/src/GX_state.c')
-rw-r--r--arm9/lib/src/GX_state.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/arm9/lib/src/GX_state.c b/arm9/lib/src/GX_state.c
new file mode 100644
index 00000000..3ca3b266
--- /dev/null
+++ b/arm9/lib/src/GX_state.c
@@ -0,0 +1,26 @@
+#include "global.h"
+#include "main.h"
+#include "GX.h"
+
+extern struct GX_State gGXState;
+
+ARM_FUNC void GX_InitGXState(){
+ gGXState.lcdc = 0x0;
+ gGXState.bg = 0x0;
+ gGXState.obj = 0x0;
+ gGXState.arm7 = 0x0;
+ gGXState.tex = 0x0;
+ gGXState.texPltt = 0x0;
+ gGXState.clrImg = 0x0;
+ gGXState.bgExtPltt = 0x0;
+ gGXState.objExtPltt = 0x0;
+ gGXState.sub_bg = 0x0;
+ gGXState.sub_obj = 0x0;
+ gGXState.sub_bgExtPltt = 0x0;
+ gGXState.sub_objExtPltt = 0x0;
+ reg_GX_VRAMCNT = 0x0;
+ reg_GX_VRAMCNT_E = 0x0;
+ reg_GX_VRAMCNT_F = 0x0;
+ reg_GX_VRAMCNT_G = 0x0;
+ reg_GX_VRAM_HI_CNT = 0x0;
+}