summaryrefslogtreecommitdiff
path: root/src/code_8009804.c
diff options
context:
space:
mode:
authorSeth Barberee <seth.barberee@gmail.com>2021-06-23 17:35:37 -0500
committerSeth Barberee <seth.barberee@gmail.com>2021-06-23 17:35:37 -0500
commitd1685379681008d41f78fa4a6ae17ace5ee2dbfa (patch)
tree22645f079beea40333e7e822f055c063781ef806 /src/code_8009804.c
parentf1fdcc2b0ade13ad1a4cc7360eac70f27396d26a (diff)
Finish out game options and FatalError
Some data cleanup as well. Thanks pika for the noreturn tip for FatalError.
Diffstat (limited to 'src/code_8009804.c')
-rw-r--r--src/code_8009804.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/code_8009804.c b/src/code_8009804.c
index 23407a7..845192a 100644
--- a/src/code_8009804.c
+++ b/src/code_8009804.c
@@ -16,7 +16,19 @@ struct unkStruct_202D240
};
extern struct unkStruct_202D240 gUnknown_202D240[8];
+struct unkStruct_202D038
+{
+ // size: 0x40
+ u32 unk0;
+ u32 unk4;
+ u8 fill[0x40 - 0x8];
+};
+
+extern struct unkStruct_202D038 gUnknown_202D038[8];
+
extern void CpuCopy(void* dest, void *src, s32 size);
+extern void sub_8009A1C(u32);
+
void vram_related_8009804(void)
{
@@ -123,3 +135,17 @@ void sub_80099C0(void)
// TODO shouldn't this be 202B838? It didn't match... might need raw address
CpuCopy(BG_SCREEN_ADDR(13),gUnknown_202B038 + 0x1, BG_SCREEN_SIZE);
}
+
+void sub_80099F0(u32 r0)
+{
+ s32 iVar2;
+ for(iVar2 = 0; iVar2 < 8; iVar2++)
+ {
+ gUnknown_202D038[iVar2].unk4 = r0;
+ }
+}
+
+void sub_8009A10(u32 *r0)
+{
+ sub_8009A1C(r0[1]);
+}