Previous 199869 Revisions Next

r34387 Wednesday 14th January, 2015 at 06:58:42 UTC by Fabio Priuli
nes: fixed game genie passthrough. nw.
[src/emu/bus/nes]ggenie.c ggenie.h nes_slot.h

trunk/src/emu/bus/nes/ggenie.c
r242898r242899
4848   save_item(NAME(m_gg_bypass));
4949}
5050
51void nes_ggenie_device::pcb_start(running_machine &machine, UINT8 *ciram_ptr, bool cart_mounted)
52{
53   device_nes_cart_interface::pcb_start(machine, ciram_ptr, cart_mounted);
54   if (m_ggslot->m_cart)
55      m_ggslot->pcb_start(m_ciram);
56}
57
5158void nes_ggenie_device::pcb_reset()
5259{
5360   m_chr_source = m_vrom_chunks ? CHRROM : CHRRAM;
r242898r242899
5865   m_gg_bypass = 0;
5966
6067   if (m_ggslot->m_cart)
61   {
62      m_ggslot->pcb_start(m_ciram);
6368      m_ggslot->m_cart->pcb_reset();
64   }
6569}
6670
6771
trunk/src/emu/bus/nes/ggenie.h
r242898r242899
3333   virtual machine_config_constructor device_mconfig_additions() const;
3434
3535   virtual void pcb_reset();
36   virtual void pcb_start(running_machine &machine, UINT8 *ciram_ptr, bool cart_mounted);
3637
3738private:
3839   // emulate the Game Genie!
trunk/src/emu/bus/nes/nes_slot.h
r242898r242899
216216   virtual void scanline_irq(int scanline, int vblank, int blanked) {}
217217
218218   virtual void pcb_reset() {} // many pcb expect specific PRG/CHR banking at start
219   void pcb_start(running_machine &machine, UINT8 *ciram_ptr, bool cart_mounted);
219   virtual void pcb_start(running_machine &machine, UINT8 *ciram_ptr, bool cart_mounted);
220220   void pcb_reg_postload(running_machine &machine);
221221   void nes_banks_restore();
222222


Previous 199869 Revisions Next


© 1997-2024 The MAME Team