summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/astrcorp.cpp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2018-01-07 22:20:14 +0100
committer Olivier Galibert <galibert@pobox.com>2018-01-17 16:11:18 +0100
commitd469cc04bcace0f601802301caeddc5b473b75f2 (patch)
treea9d71540c9c69cee5ab3a533476b81833fa02f5f /src/mame/drivers/astrcorp.cpp
parent9f383f76ce6f00cc3320e5ba53dc323781e0077b (diff)
API Change: Machine configs are now a method of the owner class, and the prototype is simplified [O. Galibert]
Beware, the device context does not follow in MCFG_FRAGMENT_ADD anymore due to the prototype change. So creating a device then configuring through a fragment doesn't work as-is. The simplest solution is just to add a MCFG_DEVICE_MODIFY at the start of the fragment with the correct tag.
Diffstat (limited to 'src/mame/drivers/astrcorp.cpp')
-rw-r--r--src/mame/drivers/astrcorp.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mame/drivers/astrcorp.cpp b/src/mame/drivers/astrcorp.cpp
index 56cea09962a..ffc2e3803e4 100644
--- a/src/mame/drivers/astrcorp.cpp
+++ b/src/mame/drivers/astrcorp.cpp
@@ -93,6 +93,10 @@ public:
uint32_t screen_update_astrocorp(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
TIMER_DEVICE_CALLBACK_MEMBER(skilldrp_scanline);
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
+ void skilldrp(machine_config &config);
+ void showhand(machine_config &config);
+ void speeddrp(machine_config &config);
+ void showhanc(machine_config &config);
};
/***************************************************************************
@@ -493,7 +497,7 @@ TODO: understand if later hardware uses different parameters (XTAL is almost sur
#define ASTROCORP_VBEND 0
#define ASTROCORP_VBSTART 240
-static MACHINE_CONFIG_START( showhand )
+MACHINE_CONFIG_START(astrocorp_state::showhand)
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", M68000, XTAL_20MHz / 2)
@@ -528,7 +532,7 @@ static MACHINE_CONFIG_START( showhand )
MACHINE_CONFIG_END
-static MACHINE_CONFIG_DERIVED( showhanc, showhand )
+MACHINE_CONFIG_DERIVED(astrocorp_state::showhanc, showhand)
MCFG_CPU_MODIFY("maincpu")
MCFG_CPU_PROGRAM_MAP(showhanc_map)
MACHINE_CONFIG_END
@@ -545,7 +549,7 @@ TIMER_DEVICE_CALLBACK_MEMBER(astrocorp_state::skilldrp_scanline)
m_maincpu->set_input_line(2, HOLD_LINE);
}
-static MACHINE_CONFIG_START( skilldrp )
+MACHINE_CONFIG_START(astrocorp_state::skilldrp)
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", M68000, XTAL_24MHz / 2) // JX-1689F1028N GRX586.V5
@@ -582,7 +586,7 @@ static MACHINE_CONFIG_START( skilldrp )
MACHINE_CONFIG_END
-static MACHINE_CONFIG_DERIVED( speeddrp, skilldrp )
+MACHINE_CONFIG_DERIVED(astrocorp_state::speeddrp, skilldrp)
MCFG_CPU_MODIFY("maincpu")
MCFG_CPU_PROGRAM_MAP(speeddrp_map)
MACHINE_CONFIG_END