diff options
author | Hiram Anderson <37224753+hjk321@users.noreply.github.com> | 2021-04-06 17:45:09 -0500 |
---|---|---|
committer | Hiram Anderson <37224753+hjk321@users.noreply.github.com> | 2021-04-06 17:45:09 -0500 |
commit | 59695c3df2ba6bacac5dc202d1eb732df61b91fc (patch) | |
tree | 0a67d595c2dc7a451e46c561005b55517bbdf2d4 | |
parent | 33c873594da6d0bb3f87d90e18f25cca9bcb0c70 (diff) |
GHG Credit
-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 |