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

Definition

void GB_save_state_to_buffer(GB_gameboy_t *gb, uint8_t *buffer);

In save_state.h

Description

Saves a snapshot of the current emulation state of the emulator instance into buffer. The size of the buffer must be the return value of GB_get_save_state_size.

Thread Safety

GB_save_state_to_buffer must not be called if the instance is being run in any thread, including the current one (via a callback).

Notes

SameBoy follows the BESS specification and generates save states compatible with other BESS-compliant emulators.

See Also