summaryrefslogtreecommitdiff
path: root/include/save.h
diff options
context:
space:
mode:
authorhuderlem <huderlem@gmail.com>2021-02-28 10:03:22 -0600
committerGitHub <noreply@github.com>2021-02-28 10:03:22 -0600
commit10c77f1bc20939ee0611f13eed526c49fd829750 (patch)
tree97fd3b0e2b1af964cf4f4ba9b672e8c95ba45368 /include/save.h
parentc900de35e753a8657cd3c337ca602871cb64c887 (diff)
parent1912b0cf0a0f42f23200ecffcb22651015478ef6 (diff)
Merge pull request #1345 from GriffinRichards/doc-rtcscreen
Document/clean up some minor screens
Diffstat (limited to 'include/save.h')
-rw-r--r--include/save.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/save.h b/include/save.h
index 18b57502b..948530406 100644
--- a/include/save.h
+++ b/include/save.h
@@ -29,6 +29,11 @@ struct SaveSectionOffsets
u16 size;
};
+// Each 4 KiB flash sector contains 3968 bytes of actual data followed by a 128 byte footer
+#define SECTOR_DATA_SIZE 3968
+#define SECTOR_FOOTER_SIZE 128
+#define SECTOR_SIZE (SECTOR_DATA_SIZE + SECTOR_FOOTER_SIZE)
+
// Emerald changes this definition to be the sectors per slot.
#define NUM_SECTORS_PER_SLOT 16