diff options
author | Seth Barberee <seth.barberee@gmail.com> | 2021-05-15 16:59:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-15 18:59:55 -0500 |
commit | f402e46cd3c8b7236673d6edbae77903a7cc0618 (patch) | |
tree | 37a19f3ab35a73c29d4d6da565741beaf7bb547f /src/unk_menu_203B364.c | |
parent | f65dee5a143bd543c74c010d7252eb76893ee243 (diff) |
Sese's April/May Dump (#37)
* splitting lots of pokemon square and labeling lots of other things
* actually commit this stuff
* more moving data and things
* more screen work
* split out some pokemon dungeon data
* lots of data work
* push more data work
* split kecleon, decomp another kanghaskhan func, and try to doc UpdateBGControl more
* lots of item work
* label more item things
* subtype -> category and doc types/category
Diffstat (limited to 'src/unk_menu_203B364.c')
-rw-r--r-- | src/unk_menu_203B364.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/unk_menu_203B364.c b/src/unk_menu_203B364.c index f6f6766..baba184 100644 --- a/src/unk_menu_203B364.c +++ b/src/unk_menu_203B364.c @@ -1,5 +1,7 @@ #include "global.h" #include "input.h" +#include "menu.h" +#include "main_menu.h" struct unkData { @@ -27,9 +29,9 @@ struct unkStruct_203B360 extern struct unkStruct_203B360 *gUnknown_203B364; extern struct unkData gUnknown_80E6F20; -extern u32 gUnknown_80E6F38; -extern u32 gUnknown_80E7090; -extern u32 gUnknown_80E6F50; +extern struct unkData gUnknown_80E6F38; +extern struct MenuItem gUnknown_80E7090[]; +extern struct MenuItem gUnknown_80E6F50[]; extern void *MemoryAlloc(u32, u32); extern void MemoryFill8(u8 *, u8, u32); @@ -37,13 +39,13 @@ extern void MemoryFree(void *); extern void sub_8038440(); extern void sub_8035CF4(u32 *, u32, u32); extern void sub_800641C(void *, u32, u32); -extern void SetMenuItems(void *, void *, u32, u32 *, u32 *, u32, u32, u32); +extern void SetMenuItems(void *, struct unkData *, u32, struct unkData *, struct MenuItem *, u32, u32, u32); extern u8 sub_80130A8(u32 *); extern void sub_8013114(u32 *, u32 *); extern void sub_80384D0(); extern void sub_8038830(); -void sub_803850C(s32 param_1) +void CreateSaveMenu(s32 currMenu) { s32 iVar4; @@ -57,29 +59,29 @@ void sub_803850C(s32 param_1) ResetUnusedInputStruct(); sub_800641C(gUnknown_203B364->unk148,1,1); - if (param_1 == 0x2e) { + if (currMenu == MENU_DELETE_SAVE) { // Beware, Deleting your Adventure - SetMenuItems(&gUnknown_203B364->unk8,gUnknown_203B364->unk148,0,&gUnknown_80E6F38,&gUnknown_80E7090, + SetMenuItems(&gUnknown_203B364->unk8,gUnknown_203B364->unk148,0,&gUnknown_80E6F38,gUnknown_80E7090, 0,6,0); } else { // Saving your Adventure - SetMenuItems(&gUnknown_203B364->unk8,gUnknown_203B364->unk148,0,&gUnknown_80E6F38,&gUnknown_80E6F50, + SetMenuItems(&gUnknown_203B364->unk8,gUnknown_203B364->unk148,0,&gUnknown_80E6F38,gUnknown_80E6F50, 0,6,0); } sub_8035CF4(&gUnknown_203B364->unk8,0,1); gUnknown_203B364->unk4 = 0; - gUnknown_203B364->currMenu = param_1; + gUnknown_203B364->currMenu = currMenu; sub_8038830(); } -void sub_8038604(void) +void CleanSaveMenu(void) { ResetUnusedInputStruct(); sub_800641C(0,1,1); - if (gUnknown_203B364 != 0) { + if (gUnknown_203B364 != NULL) { MemoryFree(gUnknown_203B364); - gUnknown_203B364 = 0; + gUnknown_203B364 = NULL; } } |