diff options
author | Hiram Anderson <37224753+hjk321@users.noreply.github.com> | 2021-04-12 09:32:56 -0500 |
---|---|---|
committer | Hiram Anderson <37224753+hjk321@users.noreply.github.com> | 2021-04-12 09:32:56 -0500 |
commit | e1678a1d67fcad597610d51a9891e2c93c512e51 (patch) | |
tree | 28cc8a0f444a53714fca78e01bc553db3a374e58 | |
parent | 4b31d33f149f141717d14f821979b2512497dda7 (diff) |
Updated Extra save space with two lines of code (markdown)
-rw-r--r-- | Extra-save-space-with-two-lines-of-code.md | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Extra-save-space-with-two-lines-of-code.md b/Extra-save-space-with-two-lines-of-code.md index a344d3f..19b0b13 100644 --- a/Extra-save-space-with-two-lines-of-code.md +++ b/Extra-save-space-with-two-lines-of-code.md @@ -41,7 +41,4 @@ 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! - -*** -Created by [GHG](https://github.com/great-hacking-group). View this tutorial as a mergeable branch [here](https://github.com/great-hacking-group/pokeemerald/tree/save-sector-expansion).
\ 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!
\ No newline at end of file |