From 11e7459c33a5c7252bf6825655f397bd9397d52e Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Fri, 29 Nov 2024 14:17:35 +0200 Subject: [PATCH] Updated GB_save_state (markdown) --- GB_save_state.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/GB_save_state.md b/GB_save_state.md index 1864f31..7fad2a9 100644 --- a/GB_save_state.md +++ b/GB_save_state.md @@ -6,8 +6,17 @@ In `save_state.h` ## Description -TBD +Saves a snapshot of the current emulation state of the emulator instance into `path`. Returns `0` on success, a positive `errno` value on POSIX failures, and `-1` on other failures. ## Thread Safety `GB_save_state` must not be called if the instance is being run in any thread, including the current one (via a callback). + +## Notes + +SameBoy follows the [BESS](https://github.com/LIJI32/SameBoy/blob/master/BESS.md) specification, and generates save states compatible with other BESS-compliant emulators. + +## See Also + +* [[GB_save_state_to_buffer]] +* [[GB_load_state]] \ No newline at end of file