-
-
Notifications
You must be signed in to change notification settings - Fork 212
GB_save_battery_to_buffer
Lior Halphon edited this page Nov 30, 2024
·
3 revisions
int GB_save_battery_to_buffer(GB_gameboy_t *gb, uint8_t *buffer, size_t size);
In gb.h
Saves battery-backed information (e.g. battery-powered cartridge RAM or Real-Time Clock information) from the emulator instance into buffer
. Returns 0
on success and EIO
if size
is less than the value returned by GB_save_battery_size.
GB_save_battery_to_buffer
must not be called if the instance is being run in another thread, but may be called from the current one (via a callback).