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...
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.
◆ ante
◆ jokers_data
◆ money
◆ padding
◆ rng_info
◆ round
◆ tag_end
◆ tag_internal
| char tag_internal[SAVE_LABEL_SIZE] |
◆ tag_jokers
| char tag_jokers[SAVE_LABEL_SIZE] |
◆ timer
The documentation for this struct was generated from the following file: