Updated GB_is_save_state (markdown)

Lior Halphon 2024-11-29 13:41:12 +02:00
parent b05ede54b5
commit 70bd8edcab
1 changed files with 10 additions and 1 deletions

@ -6,8 +6,17 @@ In `save_state.h`
## Description
TBD
Returns `true` if the file at `path` contains a SameBoy or [BESS](https://github.com/LIJI32/SameBoy/blob/master/BESS.md) save state.
## Thread Safety
`GB_is_save_state` is thread-safe and can be called from any thread and context.
## Notes
This function merely checks for header and footer magic values, it does not guarantee the file will successfully load with [[GB_load_state]], etc.
## See Also
* [[GB_get_state_model]]
* [[GB_get_state_model_from_buffer]]