diff options
author | Dennis <dhilhorst2000@gmail.com> | 2021-08-01 21:09:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-01 12:09:13 -0700 |
commit | 26e5708818765e2abaab29b6ffdfa8f01a5600b7 (patch) | |
tree | 28fe7891cad7a46da5e88f0293e2a9f855e14203 /src/play_time.c | |
parent | 645c45431b0e091234699c3706ff90d1654cfb57 (diff) |
More pokemon related decomp (#48)
* add struct names
* decompile SaveRecruitedPokemon
* decompile ReadRecruitedPokemon
* decomp anotha one
* some renaming
* another save function
* more backup functions
* sub_808E400
* only one function left in pokemon_2.s
* decomp one more function
* merge 2 structs
Diffstat (limited to 'src/play_time.c')
-rw-r--r-- | src/play_time.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/play_time.c b/src/play_time.c index 8b2e567..97a9754 100644 --- a/src/play_time.c +++ b/src/play_time.c @@ -77,16 +77,16 @@ void DeconstructPlayTime(struct PlayTimeStruct *r0, u32 *outHours, u32 *outMinut void WritePlayTime(struct unkStruct_8094924 *r0) { - 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); + SaveIntegerBits(r0, &gPlayTimeRef->frames, 6); + SaveIntegerBits(r0, &gPlayTimeRef->seconds, 6); + SaveIntegerBits(r0, &gPlayTimeRef->minutes, 6); + SaveIntegerBits(r0, &gPlayTimeRef->hours, 14); } void ReadPlayTime(struct unkStruct_8094924 *r0) { - 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); + RestoreIntegerBits(r0, &gPlayTimeRef->frames, 6); + RestoreIntegerBits(r0, &gPlayTimeRef->seconds, 6); + RestoreIntegerBits(r0, &gPlayTimeRef->minutes, 6); + RestoreIntegerBits(r0, &gPlayTimeRef->hours, 14); } |