From 1b12510693a42390dc50ab5de6a0e814e3bf1f14 Mon Sep 17 00:00:00 2001 From: Ted Green Date: Sun, 28 Jun 2020 13:30:24 -0600 Subject: vegas.cpp: Add default port mapping for 8WAY players. Fixes a crash in roadburn caused by trying to read undeclared io ports. (nw) --- src/mame/drivers/vegas.cpp | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/src/mame/drivers/vegas.cpp b/src/mame/drivers/vegas.cpp index b732ab51956..8ff8782e672 100644 --- a/src/mame/drivers/vegas.cpp +++ b/src/mame/drivers/vegas.cpp @@ -1348,6 +1348,18 @@ static INPUT_PORTS_START( vegas_common ) PORT_START("AN.6") PORT_BIT( 0xff, 0x80, IPT_CUSTOM ) PORT_START("AN.7") PORT_BIT( 0xff, 0x80, IPT_CUSTOM ) + PORT_START("8WAY_P1") + PORT_BIT( 0x00ff, IP_ACTIVE_HIGH, IPT_UNUSED ) + + PORT_START("8WAY_P2") + PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_UNUSED ) + + PORT_START("8WAY_P3") + PORT_BIT( 0x00ff, IP_ACTIVE_HIGH, IPT_UNUSED ) + + PORT_START("8WAY_P4") + PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_UNUSED ) + INPUT_PORTS_END static INPUT_PORTS_START( vegas_analog ) @@ -1403,7 +1415,7 @@ static INPUT_PORTS_START( gauntleg ) PORT_MODIFY("IN2") PORT_BIT( 0xffff, IP_ACTIVE_LOW, IPT_CUSTOM ) PORT_CUSTOM_MEMBER(vegas_state, gauntleg_p34_r) - PORT_START("8WAY_P1") + PORT_MODIFY("8WAY_P1") PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(1) PORT_8WAY PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) PORT_8WAY PORT_BIT( 0x0004, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) PORT_8WAY @@ -1413,7 +1425,7 @@ static INPUT_PORTS_START( gauntleg ) PORT_BIT( 0x0040, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(1) PORT_NAME("P1 Turbo") PORT_BIT( 0x0080, IP_ACTIVE_HIGH, IPT_UNUSED ) - PORT_START("8WAY_P2") + PORT_MODIFY("8WAY_P2") PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(2) PORT_8WAY PORT_BIT( 0x0200, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) PORT_8WAY PORT_BIT( 0x0400, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) PORT_8WAY @@ -1423,7 +1435,7 @@ static INPUT_PORTS_START( gauntleg ) PORT_BIT( 0x4000, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(2) PORT_NAME("P2 Turbo") PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_UNUSED ) - PORT_START("8WAY_P3") + PORT_MODIFY("8WAY_P3") PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(3) PORT_8WAY PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_PLAYER(3) PORT_8WAY PORT_BIT( 0x0004, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_PLAYER(3) PORT_8WAY @@ -1433,7 +1445,7 @@ static INPUT_PORTS_START( gauntleg ) PORT_BIT( 0x0040, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(3) PORT_NAME("P3 Turbo") PORT_BIT( 0x0080, IP_ACTIVE_HIGH, IPT_UNUSED ) - PORT_START("8WAY_P4") + PORT_MODIFY("8WAY_P4") PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(4) PORT_8WAY PORT_BIT( 0x0200, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_PLAYER(4) PORT_8WAY PORT_BIT( 0x0400, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_PLAYER(4) PORT_8WAY @@ -1641,7 +1653,7 @@ static INPUT_PORTS_START( nbashowt ) PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(4) PORT_NAME("P4 B") PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(4) PORT_NAME("P4 Turbo") - PORT_START("8WAY_P4") + PORT_MODIFY("8WAY_P4") PORT_BIT( 0x1, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(4) PORT_8WAY PORT_BIT( 0x2, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_PLAYER(4) PORT_8WAY PORT_BIT( 0x4, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_PLAYER(4) PORT_8WAY -- cgit v1.2.3