3 GB_save_battery_to_buffer
Lior Halphon edited this page 2024-12-01 01:09:32 +02:00

Definition

int GB_save_battery_to_buffer(GB_gameboy_t *gb, uint8_t *buffer, size_t size);

In gb.h

Description

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.

Thread Safety

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

See Also