diff options
-rw-r--r-- | Extra-save-space-with-two-lines-of-code.md | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Extra-save-space-with-two-lines-of-code.md b/Extra-save-space-with-two-lines-of-code.md index 19b0b13..4ae99bd 100644 --- a/Extra-save-space-with-two-lines-of-code.md +++ b/Extra-save-space-with-two-lines-of-code.md @@ -41,4 +41,7 @@ struct SaveSection So, we have the `data` array which is the game data itself. Everything else is the footer data we were talking about, which pertains to the save sector itself. But, wait a minute... That's only 12 bytes of footer data, not 128! Also, there's `0xFF4` (4084) bytes of data in `data`, when we saw with the two constants above that only 3968 of those bytes are being written to! That's a difference of **116** bytes in the sector that is completely unused! -All this two line fix is doing is taking the unused bytes from the footer and writing game data to it instead. 116 bytes is not a huge amount, but remember that these bytes are being saved in *all 32 sectors*, which adds up to a combined 3.6 kilobytes of extra space. Not too shabby!
\ No newline at end of file +All this two line fix is doing is taking the unused bytes from the footer and writing game data to it instead. 116 bytes is not a huge amount, but remember that these bytes are being saved in *all 32 sectors*, which adds up to a combined 3.6 kilobytes of extra space. Not too shabby! + +*** +Tutorial by [GHG](https://github.com/great-hacking-group)
\ No newline at end of file |