Updated GB_get_state_model_from_buffer (markdown)

Lior Halphon 2024-11-29 13:36:29 +02:00
parent 04f1863c13
commit e9e8c358f2
1 changed files with 9 additions and 1 deletions

@ -6,8 +6,16 @@ In `save_state.h`
## Description
TBD
Retrieves the [[model|GB_model_t]] used by a a save state file stored in `buffer` with size `length`. Populates `model` and returns 0 on success. Returns a positive `EIO` if the buffer is not large enough, and -1 on other failures.
## Thread Safety
`GB_get_state_model_from_buffer` 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](https://github.com/LIJI32/SameBoy/blob/master/BESS.md) specification.
## See Also
* [[GB_get_state_model]]