mirror of https://github.com/LIJI32/SameBoy.git
Updated GB_load_state_from_buffer (markdown)
parent
5f280d0b48
commit
62c17319ce
|
@ -6,7 +6,7 @@ In `save_state.h`
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
||||||
Loads a snapshot of an emulation state of the emulator instance from `path`. Returns `0` on success, `EIO if the buffer is too short, and `-1` on other failures. Detailed error messages will be written to the [[log|GB_set_log_callback]] on failure.
|
Loads a snapshot of an emulation state of the emulator instance from `buffer` with size `length`. Returns `0` on success, `EIO if the buffer is too short, and `-1` on other failures. Detailed error messages will be written to the [[log|GB_set_log_callback]] on failure.
|
||||||
|
|
||||||
## Thread Safety
|
## Thread Safety
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue