From 7b142311a7294c4c7a943870fa5f24f0fbea604a Mon Sep 17 00:00:00 2001 From: Seth Barberee Date: Fri, 12 Mar 2021 15:39:07 -0600 Subject: Miscellaneous Work (Again) (#30) * work on debug menu and document that and main menu * split, decomp, label more funcs * split exclusive pokemon data out into C * macro-ize exlusive pokemon data * decomp 2 more funcs * decomp a few more * finally match PromptNewQuestion * woot 7% aka more debug menu stuff --- src/code_8094F88.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/code_8094F88.c') diff --git a/src/code_8094F88.c b/src/code_8094F88.c index b9d2828..d3ed115 100644 --- a/src/code_8094F88.c +++ b/src/code_8094F88.c @@ -14,8 +14,8 @@ extern u32 *gUnknown_203B488; extern u32 *gUnknown_203B48C; -extern void sub_809488C(u32 *r0, u32 *r1, u32); -extern void sub_8094924(u32 *r0, u32 *r1, u32); +extern void sub_809488C(u8 *r0, u8 *r1, u32); +extern void sub_8094924(u8 *r0, u8 *r1, u32); void InitializePlayTime(void) @@ -87,20 +87,20 @@ void DeconstructPlayTime(struct PlayTimeStruct *r0, u32 *outHours, u32 *outMinut } } -void sub_8095044(u32 *r0) +void sub_8095044(u8 *r0) { - sub_809488C(r0, (u32 *)(&(gPlayTimeRef->frames)), 6); - sub_809488C(r0, (u32 *)(&(gPlayTimeRef->seconds)), 6); - sub_809488C(r0, (u32 *)(&(gPlayTimeRef->minutes)), 6); - sub_809488C(r0, (u32 *)(&(gPlayTimeRef->hours)), 14); + sub_809488C(r0, (&(gPlayTimeRef->frames)), 6); + sub_809488C(r0, (&(gPlayTimeRef->seconds)), 6); + sub_809488C(r0, (&(gPlayTimeRef->minutes)), 6); + sub_809488C(r0, (u8 *)(&(gPlayTimeRef->hours)), 14); } -void sub_8095080(u32 *r0) +void sub_8095080(u8 *r0) { - sub_8094924(r0, (u32 *)(&(gPlayTimeRef->frames)), 6); - sub_8094924(r0, (u32 *)(&(gPlayTimeRef->seconds)), 6); - sub_8094924(r0, (u32 *)(&(gPlayTimeRef->minutes)), 6); - sub_8094924(r0, (u32 *)(&(gPlayTimeRef->hours)), 14); + sub_8094924(r0, (&(gPlayTimeRef->frames)), 6); + sub_8094924(r0, (&(gPlayTimeRef->seconds)), 6); + sub_8094924(r0, (&(gPlayTimeRef->minutes)), 6); + sub_8094924(r0, (u8 *)(&(gPlayTimeRef->hours)), 14); } void sub_80950BC(void) -- cgit v1.2.3