From 70bd8edcab9fbd8443401aa1964deb0193b5e7dd Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Fri, 29 Nov 2024 13:41:12 +0200 Subject: [PATCH] Updated GB_is_save_state (markdown) --- GB_is_save_state.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/GB_is_save_state.md b/GB_is_save_state.md index 1dc63ae..051a2f7 100644 --- a/GB_is_save_state.md +++ b/GB_is_save_state.md @@ -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]] \ No newline at end of file