From 04f1863c13753f1cf41798593c28d1a374163878 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Fri, 29 Nov 2024 13:34:49 +0200 Subject: [PATCH] Updated GB_get_state_model (markdown) --- GB_get_state_model.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/GB_get_state_model.md b/GB_get_state_model.md index 507afd7..6f0e4a5 100644 --- a/GB_get_state_model.md +++ b/GB_get_state_model.md @@ -6,8 +6,16 @@ In `save_state.h` ## Description -TBD +Retrieves the [[model|GB_model_t]] used by a 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](https://github.com/LIJI32/SameBoy/blob/master/BESS.md) specification. + +## See Also + +* [[GB_get_state_model_from_buffer]]