mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
gba_lcd inherits m_regs as well (nw)
This commit is contained in:
parent
6eeb2ff231
commit
dff14d609f
1 changed files with 6 additions and 4 deletions
|
@ -2142,10 +2142,6 @@ void gba_lcd_device::device_start()
|
|||
m_vram = make_unique_clear<UINT32[]>(0x18000 / 4);
|
||||
m_oam = make_unique_clear<UINT32[]>(0x400 / 4);
|
||||
|
||||
save_pointer(NAME(m_pram.get()), 0x400 / 4);
|
||||
save_pointer(NAME(m_vram.get()), 0x18000 / 4);
|
||||
save_pointer(NAME(m_oam.get()), 0x400 / 4);
|
||||
|
||||
m_screen->register_screen_bitmap(m_bitmap);
|
||||
|
||||
/* create a timer to fire scanline functions */
|
||||
|
@ -2153,6 +2149,12 @@ void gba_lcd_device::device_start()
|
|||
m_hbl_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(gba_lcd_device::perform_hbl),this));
|
||||
m_scan_timer->adjust(machine().first_screen()->time_until_pos(0, 0));
|
||||
|
||||
save_item(NAME(m_regs));
|
||||
|
||||
save_pointer(NAME(m_pram.get()), 0x400 / 4);
|
||||
save_pointer(NAME(m_vram.get()), 0x18000 / 4);
|
||||
save_pointer(NAME(m_oam.get()), 0x400 / 4);
|
||||
|
||||
save_item(NAME(m_windowOn));
|
||||
save_item(NAME(m_fxOn));
|
||||
save_item(NAME(m_gfxBG2Changed));
|
||||
|
|
Loading…
Reference in a new issue