diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-11-13 23:19:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-13 23:19:57 -0500 |
commit | 159bb37bbe9d960f0d2a3da9736e1be5eefb8290 (patch) | |
tree | 44e6d447e57941a77623253884304c3174b72886 /src/ereader_helpers.c | |
parent | 9d3345a6d69c38bf31014df69c52583c877eed24 (diff) | |
parent | 9a932cd9c3089c03adada30ace4c79a84bf73cf0 (diff) |
Merge branch 'master' into fix_saveblock_reorder
Diffstat (limited to 'src/ereader_helpers.c')
-rwxr-xr-x | src/ereader_helpers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ereader_helpers.c b/src/ereader_helpers.c index 9a93707d8..0de87602e 100755 --- a/src/ereader_helpers.c +++ b/src/ereader_helpers.c @@ -481,7 +481,7 @@ static bool32 TryWriteTrainerHill_Internal(struct EReaderTrainerHillSet * hillSe } hillTag->checksum = CalcByteArraySum((u8 *)hillTag->floors, NUM_TRAINER_HILL_FLOORS * sizeof(struct TrHillFloor)); - if (TryWriteSpecialSaveSection(SECTOR_ID_TRAINER_HILL, (u8 *)hillTag) != SAVE_STATUS_OK) + if (TryWriteSpecialSaveSector(SECTOR_ID_TRAINER_HILL, (u8 *)hillTag) != SAVE_STATUS_OK) return FALSE; return TRUE; @@ -497,7 +497,7 @@ bool32 TryWriteTrainerHill(struct EReaderTrainerHillSet * hillSet) static bool32 TryReadTrainerHill_Internal(struct EReaderTrainerHillSet * dest, u8 * buffer) { - if (TryReadSpecialSaveSection(SECTOR_ID_TRAINER_HILL, buffer) != SAVE_STATUS_OK) + if (TryReadSpecialSaveSector(SECTOR_ID_TRAINER_HILL, buffer) != SAVE_STATUS_OK) return FALSE; memcpy(dest, buffer, sizeof(struct EReaderTrainerHillSet)); |