diff options
author | Seth Barberee <seth.barberee@gmail.com> | 2021-04-03 20:44:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-03 20:44:48 -0500 |
commit | 22fec43f1812cb863ad699b357bd593222ae140c (patch) | |
tree | 4efa162869946a9bfdbde1be498857fac3db3b39 /src/unk_menu_203B360_1.c | |
parent | a2d206665c6fffbd962375f262b7fbb05c7b7478 (diff) |
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
Diffstat (limited to 'src/unk_menu_203B360_1.c')
-rw-r--r-- | src/unk_menu_203B360_1.c | 36 |
1 files changed, 36 insertions, 0 deletions
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++; +} |