Skip to content

GB_get_state_model

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

Definition

int GB_get_state_model(const char *path, GB_model_t *model);

In save_state.h

Description

Retrieves the model used by a save state file stored under path. Populates model and returns 0 on success. Returns a positive errno value on a POSIX failure and -1 on other failures.

Thread Safety

GB_get_state_model is thread-safe and can be called from any thread and context.

Notes

This function also works on save states created by other emulators if they follow the BESS specification.

See Also

Clone this wiki locally