-
-
Notifications
You must be signed in to change notification settings - Fork 217
GB_save_battery
Lior Halphon edited this page Nov 30, 2024
·
3 revisions
int GB_save_battery(GB_gameboy_t *gb, const char *path);
In gb.h
Saves battery-backed information (e.g., battery-powered cartridge RAM or Real-Time Clock information) from the emulator instance into the file at path
. Returns 0
on success and a positive errno
value on POSIX failures. It will do nothing and return 0
if the currently loaded ROM has no battery-backed information.
GB_save_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).