diff options
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 |
commit | d469cc04bcace0f601802301caeddc5b473b75f2 (patch) | |
tree | a9d71540c9c69cee5ab3a533476b81833fa02f5f /src/mame/drivers/videopkr.cpp | |
parent | 9f383f76ce6f00cc3320e5ba53dc323781e0077b (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/videopkr.cpp')
-rw-r--r-- | src/mame/drivers/videopkr.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/mame/drivers/videopkr.cpp b/src/mame/drivers/videopkr.cpp index 1b9945bca0f..89decc5bc8a 100644 --- a/src/mame/drivers/videopkr.cpp +++ b/src/mame/drivers/videopkr.cpp @@ -379,6 +379,12 @@ public: required_device<cpu_device> m_soundcpu; required_device<dac_byte_interface> m_dac; required_device<gfxdecode_device> m_gfxdecode; + void babypkr(machine_config &config); + void videodad(machine_config &config); + void videopkr(machine_config &config); + void fortune1(machine_config &config); + void blckjack(machine_config &config); + void bpoker(machine_config &config); }; @@ -1240,7 +1246,7 @@ void videopkr_state::machine_start() * Machine Drivers * ************************/ -static MACHINE_CONFIG_START( videopkr ) +MACHINE_CONFIG_START(videopkr_state::videopkr) /* basic machine hardware */ MCFG_CPU_ADD("maincpu", I8039, CPU_CLOCK) @@ -1289,7 +1295,7 @@ static MACHINE_CONFIG_START( videopkr ) MACHINE_CONFIG_END -static MACHINE_CONFIG_DERIVED( blckjack, videopkr ) +MACHINE_CONFIG_DERIVED(videopkr_state::blckjack, videopkr) /* basic machine hardware */ @@ -1300,7 +1306,7 @@ static MACHINE_CONFIG_DERIVED( blckjack, videopkr ) MACHINE_CONFIG_END -static MACHINE_CONFIG_DERIVED( videodad, videopkr ) +MACHINE_CONFIG_DERIVED(videopkr_state::videodad, videopkr) /* basic machine hardware */ MCFG_CPU_MODIFY("maincpu") @@ -1316,7 +1322,7 @@ static MACHINE_CONFIG_DERIVED( videodad, videopkr ) MACHINE_CONFIG_END -static MACHINE_CONFIG_DERIVED( babypkr, videopkr ) +MACHINE_CONFIG_DERIVED(videopkr_state::babypkr, videopkr) /* basic machine hardware */ MCFG_CPU_MODIFY("maincpu") @@ -1340,7 +1346,7 @@ static MACHINE_CONFIG_DERIVED( babypkr, videopkr ) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.3) MACHINE_CONFIG_END -static MACHINE_CONFIG_DERIVED( fortune1, videopkr ) +MACHINE_CONFIG_DERIVED(videopkr_state::fortune1, videopkr) /* basic machine hardware */ MCFG_CPU_MODIFY("maincpu") @@ -1350,7 +1356,7 @@ static MACHINE_CONFIG_DERIVED( fortune1, videopkr ) MCFG_PALETTE_INIT_OWNER(videopkr_state,fortune1) MACHINE_CONFIG_END -static MACHINE_CONFIG_DERIVED( bpoker, babypkr ) +MACHINE_CONFIG_DERIVED(videopkr_state::bpoker, babypkr) MCFG_CPU_REPLACE("maincpu", I8751, XTAL_6MHz) MCFG_CPU_PROGRAM_MAP(i8751_map) MCFG_CPU_IO_MAP(i8751_io_port) |