-
-
Notifications
You must be signed in to change notification settings - Fork 217
GB_load_boot_rom
Lior Halphon edited this page Nov 24, 2024
·
2 revisions
int GB_load_boot_rom(GB_gameboy_t *gb, const char *path);
In gb.h
Loads a boot ROM from a file into an emulator instance. Returns 0 on success, a positive errno
value on a POSIX failure, and -1
on other failures. If you're not using GB_set_boot_rom_load_callback, this function (or GB_load_boot_rom_from_buffer) must be called with a boot ROM compatible with the currently selected model before running the instance.
In case of a failure, an error message will also be output to the log.
GB_load_boot_rom
is thread-safe and can be called from any thread and context.