mirror of https://github.com/LIJI32/SameBoy.git
Updated GB_load_battery (markdown)
parent
70bd8edcab
commit
a83ca16685
|
@ -6,8 +6,17 @@ In `gb.h`
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
||||||
TBD
|
Loads battery-backed information (e.g. battery-powered cartridge RAM or Real Time Clock information) from the file at `path` into the emulator instance. Return `0` on success and a positive value for `POSIX` failures`.
|
||||||
|
|
||||||
## Thread Safety
|
## Thread Safety
|
||||||
|
|
||||||
`GB_load_battery` must not be called if the instance is being run in another thread, but may be called from the current one (via a callback).
|
`GB_load_battery` must not be called if the instance is being run in another thread, but may be called from the current one (via a callback).
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
|
||||||
|
This function does not considered truncated files as failures. SameBoy battery saves are compatible with most other emulators and vice versa.
|
||||||
|
|
||||||
|
## See Also
|
||||||
|
|
||||||
|
* [[GB_load_battery_from_buffer]]
|
||||||
|
* [[GB_save_battery]]
|
Loading…
Reference in New Issue