diff options
author | Seth Barberee <seth.barberee@gmail.com> | 2021-01-31 19:07:31 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-31 19:07:31 -0600 |
commit | 74daf03fd70e7c71b92390c9133c9dd543bcb28d (patch) | |
tree | 8e73e4ed117b088264afe424beac03b3bb7e9c0b /src/wonder_mail_1.c | |
parent | 076ff9ce59bf7da841cfd17412196487657a7b44 (diff) |
Main Menu and Scripts (#25)
* label more funcs, dump scripts/text, and decomp main menu
* decomp vram func and dump more data
* add forgotten file
* get rid of goto in UpdateMenu
Diffstat (limited to 'src/wonder_mail_1.c')
-rw-r--r-- | src/wonder_mail_1.c | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/wonder_mail_1.c b/src/wonder_mail_1.c new file mode 100644 index 0000000..e8ca386 --- /dev/null +++ b/src/wonder_mail_1.c @@ -0,0 +1,47 @@ +#include "global.h" + +extern void sub_80338C4(u32); +extern u32 *gUnknown_203B33C; + +u32 sub_80144A4(s32 *); + +void sub_8035374(void) +{ + s32 temp; + if(sub_80144A4(&temp) != 0) + return; + switch(temp) + { + case 0x19: + sub_80338C4(0x78); + break; + case 0x1E: + case 0x1F: + case 0x20: + case 0x21: + case 0x22: + gUnknown_203B33C[0x159] = temp; + sub_80338C4(0x7B); + break; + } +} + +void sub_80353BC(void) +{ + s32 temp; + if(sub_80144A4(&temp) != 0) + return; + switch(temp) + { + case 0x19: + sub_80338C4(0x78); + break; + case 0x23: + case 0x24: + case 0x25: + case 0x26: + gUnknown_203B33C[0x159] = temp; + sub_80338C4(0x7D); + break; + } +} |