From 22fec43f1812cb863ad699b357bd593222ae140c Mon Sep 17 00:00:00 2001 From: Seth Barberee Date: Sat, 3 Apr 2021 20:44:48 -0500 Subject: More menu work (#33) * split adventure log menu out and decompile * add most adventure log matchings w/ 2 nonmatchings and move some relevant data * more work on other menus * fully decomp debug stuff around 203B3F0 * more debug menu work * fix CreatePartnerSelectionMenu nonmatch * move more data and clean some data up --- src/unk_menu_203B360_1.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/unk_menu_203B360_1.c (limited to 'src/unk_menu_203B360_1.c') diff --git a/src/unk_menu_203B360_1.c b/src/unk_menu_203B360_1.c new file mode 100644 index 0000000..1b84f52 --- /dev/null +++ b/src/unk_menu_203B360_1.c @@ -0,0 +1,36 @@ +#include "global.h" + +struct unkData +{ + u8 unk0[14]; + u16 unkD; + u16 unk10; + u16 unk12; + u8 *unk14; +}; + +struct unkStruct_203B360 +{ + // size: 0x1b4 + u32 currMenu; + u32 unk4; + u32 unk8; + u8 fill8[0x148 - 0xC]; + struct unkData unk148[4]; + u16 unk1A8; + u16 unk1AA; + u16 unk1AC; + u16 unk1AE; + u32 unk1B0; // Sprite count? +}; + +extern struct unkStruct_203B360 *gUnknown_203B360; +extern void AddSprite(u16 *, u32, u32, u32); + +void sub_80384D0(void) +{ + if ((gUnknown_203B360->unk1B0 & 8) != 0) { + AddSprite(&gUnknown_203B360->unk1A8, 0x100, 0, 0); + } + gUnknown_203B360->unk1B0++; +} -- cgit v1.2.3