int GB_load_rom(GB_gameboy_t *gb, const char *path);
In gb.h
gb.h
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.
0
errno
-1
In case of a failure, an error message will also be output to the log. Warning messages may be output to the log upon success.
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
There was an error while loading. Please reload this page.