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

SaveGame will contain the data about the current run to be saved to SRAM. GameVariables was used for this purpose at first, but some data needed to be shared but not saved, so it couldn't be dumped "as is" anymore and this struct had to be created. More...

Data Fields

char tag_internal [SAVE_LABEL_SIZE]
 
s32 timer
 
RngInfo rng_info
 
int round
 
int ante
 
int money
 
s32 padding [2]
 
char tag_jokers [SAVE_LABEL_SIZE]
 
JokerObjectSaveData jokers_data [MAX_JOKERS_HELD_SIZE]
 
char tag_end [4]
 

Detailed Description

SaveGame will contain the data about the current run to be saved to SRAM. GameVariables was used for this purpose at first, but some data needed to be shared but not saved, so it couldn't be dumped "as is" anymore and this struct had to be created.

word Byte 0 Byte 1 Byte 2 Byte 3 name purpose
0 '-' 'I' 'N' 'T' TAG Spells "-INTERNAL DATA -"
1 'E' 'R' 'N' 'A' - -
2 'L' ' ' 'D' 'A' - -
3 'T' 'A' ' ' '-' - -
4 T[0] T[1] T[2] T[3] GLOB TIMER The global timer used for animations thoughout the game
5 RNG[0] RNG[1] RNG[2] RNG[3] RNG INFO RNG Info struct, containing the seed used for RNG, either randomly shuffled or chosen by the player
6 RNG[4] RNG[5] RNG[6] RNG[7] - at game start, and the current position in the RNG sequence for the given seed, since the start of the run
7 RND[0] RND[1] RND[2] RND[3] ROUND What Round we are about to start
8 ANT[0] ANT[1] ANT[2] ANT[3] ANTE What Ante we are on
9 MNY[0] MNY[1] MNY[2] MNY[3] MONEY How much money we currently have left
10 UNDEF UNDEF UNDEF UNDEF PADDING Some padding
11 UNDEF UNDEF UNDEF UNDEF - -
12 '-' ' ' 'O' 'W' TAG Spells "- OWNED JOKERS -"
13 'N' 'E' 'D' ' ' - -
14 'J' 'O' 'K' 'E' - -
15 'R' 'S' ' ' '-' - -
16 ID[0] ID[1] ID[2] ID[3] JOKER DATA 0 Minimal necessary data to reconstruct a JokerObject
17 STT[0] STT[1] STT[2] STT[3] - Contains the Joker's id and persistent_state
... ... ... ... ... ... ...
... ... ... ... ... ... ...
?? '_' 'E' 'N' 'D' END_TAG Spells "_END", marks the end of the savefile

Definition at line 159 of file save.c.

Field Documentation

◆ ante

int ante

Definition at line 165 of file save.c.

◆ jokers_data

JokerObjectSaveData jokers_data[MAX_JOKERS_HELD_SIZE]

Definition at line 170 of file save.c.

◆ money

int money

Definition at line 166 of file save.c.

◆ padding

s32 padding[2]

Definition at line 167 of file save.c.

◆ rng_info

RngInfo rng_info

Definition at line 163 of file save.c.

◆ round

int round

Definition at line 164 of file save.c.

◆ tag_end

char tag_end[4]

Definition at line 172 of file save.c.

◆ tag_internal

char tag_internal[SAVE_LABEL_SIZE]

Definition at line 161 of file save.c.

◆ tag_jokers

char tag_jokers[SAVE_LABEL_SIZE]

Definition at line 169 of file save.c.

◆ timer

s32 timer

Definition at line 162 of file save.c.


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