SaveHeader for validation checks to be packed and written to SRAM for validation. Defined in this discussion as follows: https://github.com/GBALATRO/balatro-gba/discussions/450. More...
Data Fields | |
| u32 | magic |
| bool | dirty |
| char | githash [CHECK_HASH_SIZE] |
| u32 | valid_sections |
SaveHeader for validation checks to be packed and written to SRAM for validation. Defined in this discussion as follows: https://github.com/GBALATRO/balatro-gba/discussions/450.
| word | Byte 0 | Byte 1 | Byte 2 | Byte 3 | name | purpose |
|---|---|---|---|---|---|---|
| 0 | 0x47 | 0x42 | 0x41 | 0x4C | MAGIC | Identify if proceeding data is valid and not junk, spells "GBAL" |
| 1 | Dirty | H[0] | H[1] | H[2] | GITHASH_LOW | Dirty flag, followed by the first 3 bytes of shortened git hash H |
| 2 | H[3] | H[4] | H[5] | H[6] | GITHASH_HIGH | Last 4 bytes of shortened git hash H, with a dirty flag |
| 3 | SEC[0] | SEC[1] | SEC[2] | SEC[3] | VALID_SCTNS | Identifies whether each section of the save data is valid or not |