GBAlatro
A Demake of Balatro for the GBA
Loading...
Searching...
No Matches
SaveHeader Struct Reference

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
 

Detailed Description

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

Definition at line 52 of file save.c.

Field Documentation

◆ dirty

bool dirty

Definition at line 55 of file save.c.

◆ githash

char githash[CHECK_HASH_SIZE]

Definition at line 56 of file save.c.

◆ magic

u32 magic

Definition at line 54 of file save.c.

◆ valid_sections

u32 valid_sections

Definition at line 57 of file save.c.


The documentation for this struct was generated from the following file: