-
-
Notifications
You must be signed in to change notification settings - Fork 216
GB_load_battery
Lior Halphon edited this page Nov 30, 2024
·
3 revisions
int GB_load_battery(GB_gameboy_t *gb, const char *path);
In gb.h
Loads battery-backed information (e.g. battery-powered cartridge RAM or Real-Time Clock information) from the file at path
into the emulator instance. Returns 0
on success and a positive value for POSIX failures.
GB_load_battery
must not be called if the instance is being run in another thread, but may be called from the current one (via a callback).
This function does not consider truncated files as failures. SameBoy battery saves are compatible with most other emulators and vice versa.