summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/bus/nes/ggenie.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/bus/nes/ggenie.c')
-rw-r--r--src/emu/bus/nes/ggenie.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/emu/bus/nes/ggenie.c b/src/emu/bus/nes/ggenie.c
index 00b2b843ae6..6bcc253cf21 100644
--- a/src/emu/bus/nes/ggenie.c
+++ b/src/emu/bus/nes/ggenie.c
@@ -48,6 +48,13 @@ void nes_ggenie_device::device_start()
save_item(NAME(m_gg_bypass));
}
+void nes_ggenie_device::pcb_start(running_machine &machine, UINT8 *ciram_ptr, bool cart_mounted)
+{
+ device_nes_cart_interface::pcb_start(machine, ciram_ptr, cart_mounted);
+ if (m_ggslot->m_cart)
+ m_ggslot->pcb_start(m_ciram);
+}
+
void nes_ggenie_device::pcb_reset()
{
m_chr_source = m_vrom_chunks ? CHRROM : CHRRAM;
@@ -58,10 +65,7 @@ void nes_ggenie_device::pcb_reset()
m_gg_bypass = 0;
if (m_ggslot->m_cart)
- {
- m_ggslot->pcb_start(m_ciram);
m_ggslot->m_cart->pcb_reset();
- }
}