diff options
| author | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2017-05-05 00:43:55 -0400 | 
|---|---|---|
| committer | YamaArashi <YamaArashi@users.noreply.github.com> | 2017-05-04 21:49:14 -0700 | 
| commit | a85fc2a69c48a22ea400ae14b697c5600c8c7a8b (patch) | |
| tree | df8b576e79d5a83a40b3acdec0ca364df9782270 /include | |
| parent | 91eb914feb7751fd2ef57531ffe2fae4316a388a (diff) | |
use macros and defines for save.c making it easier to add new sections
Diffstat (limited to 'include')
| -rw-r--r-- | include/global.h | 7 | ||||
| -rw-r--r-- | include/save.h | 4 | 
2 files changed, 9 insertions, 2 deletions
| diff --git a/include/global.h b/include/global.h index f4f9f0048..62e557ef4 100644 --- a/include/global.h +++ b/include/global.h @@ -485,6 +485,13 @@ struct UnkStruct_8054FF8      u16 field_C;  }; +// wasnt defined so I had to define it +struct HallOfFame +{ +	u8 filler[0x1F00]; +}; + +extern struct HallOfFame gHallOfFame;  extern struct SaveBlock2 gSaveBlock2;  #endif // GUARD_GLOBAL_H diff --git a/include/save.h b/include/save.h index b9d4121ec..46bf48d60 100644 --- a/include/save.h +++ b/include/save.h @@ -63,9 +63,9 @@ u8 sub_8125758(u16 a1, const struct SaveSectionLocation *location);  u8 sub_81257F0(u16 a1, const struct SaveSectionLocation *location);  u8 sub_812587C(u16 a1, const struct SaveSectionLocation *location);  u8 sub_81258BC(u16, const struct SaveSectionLocation *location); -u8 sub_8125974(const struct SaveSectionLocation *location); +u8 GetSaveValidStatus(const struct SaveSectionLocation *location);  u8 sub_8125B88(u8 a1, u8 *data, u16 size); -u8 sub_8125BF8(u8, struct SaveSection *); +u8 DoReadFlashWholeSection(u8, struct SaveSection *);  u16 CalculateChecksum(void *, u16);  u8 HandleSavingData(u8 saveType);  u8 TrySavingData(u8 saveType); | 
