mirror of https://github.com/LIJI32/SameBoy.git
Updated GB_load_rom (markdown)
parent
6c76cd9843
commit
51ca3049d6
|
@ -6,8 +6,16 @@ In `gb.h`
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
||||||
TBD
|
Loads a ROM file into an emulator instance. Returns 0 on success, a positive `errno` value on a POSIX failure, and `-1` on other failures.
|
||||||
|
|
||||||
|
In case of a failure, an error message will also be output to the [[log|GB_set_log_callback]]. Warning messages may be output to the [[log|GB_set_log_callback]] upon success.
|
||||||
|
|
||||||
## Thread Safety
|
## Thread Safety
|
||||||
|
|
||||||
`GB_load_rom` 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_rom` must not be called if the instance is being run in another thread, but may be called from the current one (via a callback).
|
||||||
|
|
||||||
|
## See Also
|
||||||
|
|
||||||
|
* [[GB_load_rom_from_buffer]]
|
||||||
|
* [[GB_load_gbs]]
|
||||||
|
* [[GB_load_isx]]
|
||||||
|
|
Loading…
Reference in New Issue