-
-
Notifications
You must be signed in to change notification settings - Fork 212
GB_get_state_model_from_buffer
Lior Halphon edited this page Nov 30, 2024
·
4 revisions
int GB_get_state_model_from_buffer(const uint8_t *buffer, size_t length, GB_model_t *model);
In save_state.h
Retrieves the model used by a a save state file stored in buffer
with size length
. Populates model
and returns 0 on success. Returns EIO
if the buffer is not large enough, and -1 on other failures.
GB_get_state_model_from_buffer
is thread-safe and can be called from any thread and context.
This function also works on save states created by other emulators if they follow the BESS specification.