diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/igt.h | 16 | ||||
-rw-r--r-- | include/player_data.h | 7 |
2 files changed, 20 insertions, 3 deletions
diff --git a/include/igt.h b/include/igt.h new file mode 100644 index 00000000..bf5e5a63 --- /dev/null +++ b/include/igt.h @@ -0,0 +1,16 @@ +#ifndef POKEDIAMOND_IGT_H +#define POKEDIAMOND_IGT_H + +struct IGT +{ + u16 hours; + u8 minutes; + u8 seconds; +}; + +void InitIGT(struct IGT * igt); +void AddIGTSeconds(struct IGT * igt, u32 seconds); +u16 GetIGTHours(struct IGT * igt); +u8 GetIGTMinutes(struct IGT * igt); + +#endif //POKEDIAMOND_IGT_H diff --git a/include/player_data.h b/include/player_data.h index f051b1ce..04583052 100644 --- a/include/player_data.h +++ b/include/player_data.h @@ -2,6 +2,7 @@ #define POKEDIAMOND_PLAYER_DATA_H #include "options.h" +#include "igt.h" struct SaveBlock2; @@ -26,9 +27,9 @@ struct PlayerDataSav struct Options options; u8 padding[2]; struct PlayerData data; - u16 field_24; - u16 field_26; - u32 field_28; + u16 coins; + struct IGT igt; + u8 padding2[2]; }; struct Options * LoadPlayerDataAddress(struct SaveBlock2 *); |