From 5f8105180b15f04d48c72df2953d267c87d6148c Mon Sep 17 00:00:00 2001 From: Seth Barberee Date: Thu, 19 Nov 2020 11:27:18 -0600 Subject: combining and doc'ing of playtime things --- include/time.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/time.h (limited to 'include/time.h') diff --git a/include/time.h b/include/time.h new file mode 100644 index 0000000..b052ea1 --- /dev/null +++ b/include/time.h @@ -0,0 +1,19 @@ +#ifndef TIME_H +#define TIME_H + +struct PlayTimeStruct +{ + s16 unk0; + u8 hours; + u8 minutes; + u8 seconds; +}; + +void sub_8094FB4(struct PlayTimeStruct *Time); +void ResetPlayTime(struct PlayTimeStruct *Time); +struct PlayTimeStruct *sub_8094FA0(void); +void sub_8094F88(void); + + +#endif // TIME_H + -- cgit v1.2.3 From cbfab08a06d7f9deca21b510b1bbdb80c05ea662 Mon Sep 17 00:00:00 2001 From: Seth Barberee Date: Fri, 20 Nov 2020 10:33:21 -0600 Subject: finish docing PlayTime and fix function - Kermalis --- include/time.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include/time.h') diff --git a/include/time.h b/include/time.h index b052ea1..9aeb28d 100644 --- a/include/time.h +++ b/include/time.h @@ -3,15 +3,16 @@ struct PlayTimeStruct { - s16 unk0; - u8 hours; + s16 hours; u8 minutes; u8 seconds; + u8 frames; }; -void sub_8094FB4(struct PlayTimeStruct *Time); +void IncrementPlayTime(struct PlayTimeStruct *Time); void ResetPlayTime(struct PlayTimeStruct *Time); struct PlayTimeStruct *sub_8094FA0(void); +void DeconstructPlayTime(struct PlayTimeStruct *r0, u32 *outHours, u32 *outMinutes, u32 *outSeconds); void sub_8094F88(void); -- cgit v1.2.3