Skip to content

GB_save_state

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

Definition

int GB_save_state(GB_gameboy_t *gb, const char *path);

In save_state.h

Description

Saves a snapshot of the current emulation state of the emulator instance into path. Returns 0 on success, a positive errno value on POSIX failures, and -1 on other failures.

Thread Safety

GB_save_state 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

Clone this wiki locally