From 6dd2f29e8b1da4b0501e647c2bd946de001a200f Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Wed, 11 Apr 2012 06:46:04 +0000 Subject: [PATCH] fixed digdug regression (no whatsnew) --- src/mame/drivers/galaga.c | 6 +++--- src/mame/includes/galaga.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mame/drivers/galaga.c b/src/mame/drivers/galaga.c index c24c7d5e093..8ea3ae56db3 100644 --- a/src/mame/drivers/galaga.c +++ b/src/mame/drivers/galaga.c @@ -777,7 +777,7 @@ WRITE8_MEMBER(galaga_state::bosco_latch_w) } } -CUSTOM_INPUT_MEMBER(galaga_state::shifted_port_r){ return input_port_read(machine(), (const char *)param) >> 4; } +CUSTOM_INPUT_MEMBER(digdug_state::shifted_port_r){ return input_port_read(machine(), (const char *)param) >> 4; } static WRITE8_DEVICE_HANDLER( out_0 ) { @@ -1416,7 +1416,7 @@ static INPUT_PORTS_START( digdug ) PORT_DIPSETTING( 0xc0, "5" ) PORT_START("DSWA_HI") - PORT_BIT( 0x0f, 0x00, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, bosco_state,shifted_port_r, "DSWA") + PORT_BIT( 0x0f, 0x00, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, digdug_state,shifted_port_r, "DSWA") PORT_START("DSWB") // reverse order against SWA PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SWB:1,2") @@ -1443,7 +1443,7 @@ static INPUT_PORTS_START( digdug ) PORT_DIPSETTING( 0x03, DEF_STR( Hardest ) ) PORT_START("DSWB_HI") - PORT_BIT( 0x0f, 0x00, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, bosco_state,shifted_port_r, "DSWB") + PORT_BIT( 0x0f, 0x00, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, digdug_state,shifted_port_r, "DSWB") INPUT_PORTS_END /* diff --git a/src/mame/includes/galaga.h b/src/mame/includes/galaga.h index 98ca5cc2778..47773ed26ca 100644 --- a/src/mame/includes/galaga.h +++ b/src/mame/includes/galaga.h @@ -37,7 +37,6 @@ public: DECLARE_WRITE8_MEMBER(bosco_latch_w); DECLARE_WRITE8_MEMBER(galaga_videoram_w); DECLARE_WRITE8_MEMBER(gatsbee_bank_w); - DECLARE_CUSTOM_INPUT_MEMBER(shifted_port_r); }; class xevious_state : public galaga_state @@ -92,6 +91,7 @@ public: UINT8 m_tx_color_mode; UINT8 m_bg_disable; UINT8 m_bg_color_bank; + DECLARE_CUSTOM_INPUT_MEMBER(shifted_port_r); };