From 51ca3049d60350a011c85e78a689e9f3082d98b6 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Tue, 26 Nov 2024 00:05:35 +0200 Subject: [PATCH] Updated GB_load_rom (markdown) --- GB_load_rom.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/GB_load_rom.md b/GB_load_rom.md index 876e2eb..65e3a1f 100644 --- a/GB_load_rom.md +++ b/GB_load_rom.md @@ -6,8 +6,16 @@ In `gb.h` ## 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 `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]]