-
-
Notifications
You must be signed in to change notification settings - Fork 212
GB_set_read_memory_callback
Lior Halphon edited this page Nov 24, 2024
·
1 revision
typedef uint8_t (*GB_read_memory_callback_t)(GB_gameboy_t *gb, uint16_t addr, uint8_t data);
void GB_set_read_memory_callback(GB_gameboy_t *gb, GB_read_memory_callback_t callback);
In memory.h
TBD
If callback
is not NULL, GB_set_read_memory_callback
is thread-safe and can be called from any thread and context. Otherwise, it must not be called if the instance is being run in another thread, but may be called from the current one (via a callback).