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

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