Skip to content

GB_load_battery_from_buffer

Lior Halphon edited this page Nov 30, 2024 · 3 revisions

Definition

void GB_load_battery_from_buffer(GB_gameboy_t *gb, const uint8_t *buffer, size_t size);

In gb.h

Description

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.

Thread Safety

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).

Notes

SameBoy battery saves are compatible with most other emulators, and vice versa.

See Also

Clone this wiki locally