mirror of https://github.com/bsnes-emu/bsnes.git
Added direct_access interface to interrupt_enable/IE register
This commit is contained in:
parent
65dd02cc52
commit
a753e00b59
|
@ -541,6 +541,10 @@ void *GB_get_direct_access(GB_gameboy_t *gb, GB_direct_access_t access, size_t *
|
|||
*size = sizeof(gb->sprite_palettes_data);
|
||||
*bank = 0;
|
||||
return &gb->sprite_palettes_data;
|
||||
case GB_DIRECT_ACCESS_IE:
|
||||
*size = sizeof(gb->interrupt_enable);
|
||||
*bank = 0;
|
||||
return &gb->interrupt_enable;
|
||||
default:
|
||||
*size = 0;
|
||||
*bank = 0;
|
||||
|
|
Loading…
Reference in New Issue