From a2d206665c6fffbd962375f262b7fbb05c7b7478 Mon Sep 17 00:00:00 2001 From: Seth Barberee Date: Tue, 30 Mar 2021 13:11:51 -0500 Subject: Move some data and Splitting (#32) * move friend area settings to src * split out playtime into different C file and decomp a few more funcs * time -> play_time * fix include * split out more wonder mail stuff * unify 203B2C0 and unkDungeon structs. snuck in a decomp func too * split out more menu screens * work some more on trade items * doc a few more things * add a close nonmatch and decomp nullsub and small func * rollback struct attempt since it causes nonmatchings * only one func left in asm * death to trade_item asm and unify into one C file * more docing and cleanup * label main menu and trade items menu global menu struct * doc itemMode --- include/play_time.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 include/play_time.h (limited to 'include/play_time.h') diff --git a/include/play_time.h b/include/play_time.h new file mode 100644 index 0000000..faae1d0 --- /dev/null +++ b/include/play_time.h @@ -0,0 +1,20 @@ +#ifndef PLAY_TIME_H +#define PLAY_TIME_H + +struct PlayTimeStruct +{ + s16 hours; + u8 minutes; + u8 seconds; + u8 frames; +}; + +void IncrementPlayTime(struct PlayTimeStruct *Time); +void ResetPlayTime(struct PlayTimeStruct *Time); +struct PlayTimeStruct *GetPlayTime(void); +void DeconstructPlayTime(struct PlayTimeStruct *r0, u32 *outHours, u32 *outMinutes, u32 *outSeconds); +void InitializePlayTime(void); + + +#endif // PLAY_TIME_H + -- cgit v1.2.3