diff options
author | hap <happppp@users.noreply.github.com> | 2018-10-21 13:48:25 +0200 |
---|---|---|
committer | hap <happppp@users.noreply.github.com> | 2018-10-21 13:48:25 +0200 |
commit | 552f67540eec2b9c2bdd698b695d9bf071dd35d9 (patch) | |
tree | fc9f6aa6a6552b70ca04df2af2ca87e1a60be195 | |
parent | 1482a81fc2b6028141063748bbf5cb3e0ae4ae95 (diff) |
hh_sm510: correct built-in cheats for gnw_ghouse (nw)
-rw-r--r-- | src/mame/drivers/hh_sm510.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mame/drivers/hh_sm510.cpp b/src/mame/drivers/hh_sm510.cpp index cffbe347e09..410ca021494 100644 --- a/src/mame/drivers/hh_sm510.cpp +++ b/src/mame/drivers/hh_sm510.cpp @@ -1327,7 +1327,7 @@ public: static INPUT_PORTS_START( gnw_ghouse ) PORT_START("IN.0") // S1 PORT_BIT( 0x07, IP_ACTIVE_HIGH, IPT_UNUSED ) - PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, hh_sm510_state, input_changed, nullptr) // Jump + PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, hh_sm510_state, input_changed, nullptr) // Spray PORT_START("IN.1") // S2 PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_CHANGED_MEMBER(DEVICE_SELF, hh_sm510_state, input_changed, nullptr) @@ -1344,8 +1344,13 @@ static INPUT_PORTS_START( gnw_ghouse ) PORT_START("ACL") PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, hh_sm510_state, acl_button, nullptr) PORT_NAME("ACL") + PORT_START("BA") // MCU BA(alpha) pin pulled to GND + PORT_CONFNAME( 0x01, 0x01, "Increase Score (Cheat)") + PORT_CONFSETTING( 0x01, DEF_STR( Off ) ) + PORT_CONFSETTING( 0x00, DEF_STR( On ) ) + PORT_START("B") // MCU B(beta) pin pulled to GND - PORT_CONFNAME( 0x01, 0x01, "Infinite Lives (Cheat)") + PORT_CONFNAME( 0x01, 0x01, "Invincibility (Cheat)") PORT_CONFSETTING( 0x01, DEF_STR( Off ) ) PORT_CONFSETTING( 0x00, DEF_STR( On ) ) INPUT_PORTS_END @@ -1359,6 +1364,7 @@ MACHINE_CONFIG_START(gnw_ghouse_state::gnw_ghouse) MCFG_SM510_READ_K_CB(READ8(*this, hh_sm510_state, input_r)) MCFG_SM510_WRITE_S_CB(WRITE8(*this, hh_sm510_state, input_w)) MCFG_SM510_WRITE_R_CB(WRITE8(*this, hh_sm510_state, piezo_r1_w)) + MCFG_SM510_READ_BA_CB(IOPORT("BA")) MCFG_SM510_READ_B_CB(IOPORT("B")) /* video hardware */ |