-
-
Notifications
You must be signed in to change notification settings - Fork 212
GB_load_battery_from_buffer
Lior Halphon edited this page Nov 30, 2024
·
3 revisions
void GB_load_battery_from_buffer(GB_gameboy_t *gb, const uint8_t *buffer, size_t size);
In gb.h
Loads battery-backed information (e.g., battery-powered cartridge RAM or Real-Time Clock information) from buffer
with a length of size
into the emulator instance. This function never fails and will load partial information if the buffer is not large enough.
GB_load_battery_from_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).
SameBoy battery saves are compatible with most other emulators, and vice versa.