Utils functions to save/load data structures from/to the SRAM. More...
Go to the source code of this file.
Functions | |
| bool | is_game_data_valid (void) |
| Checks whether the SaveGame section is present and valid. | |
| void | save_game (void) |
| Save current run data to SRAM. | |
| void | load_game (void) |
| Load previous run data from SRAM. | |
| void | save_options (void) |
| Save options values to SRAM. | |
| void | load_options (void) |
| Load options values from SRAM. | |
Utils functions to save/load data structures from/to the SRAM.
Here is an overwiew of the contents of a valid save file.
SaveHeader indicates save validity by its presence. SaveOptions contains options values set in the corresponding menu and apply to the game itself. SaveGame contains values tied to a run with round, ante, money, owned Jokers etc...
I strongly recommend using xxd -l 512 -e -g 4 <gbalatro.sav> to view the contents of the save
Definition in file save.h.
| bool is_game_data_valid | ( | void | ) |
| void load_game | ( | void | ) |
| void load_options | ( | void | ) |