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/statriv2.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/statriv2.cpp')
-rw-r--r-- | src/mame/drivers/statriv2.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mame/drivers/statriv2.cpp b/src/mame/drivers/statriv2.cpp index fb8ac5c9188..1c63f804059 100644 --- a/src/mame/drivers/statriv2.cpp +++ b/src/mame/drivers/statriv2.cpp @@ -122,6 +122,9 @@ public: DECLARE_VIDEO_START(vertical); uint32_t screen_update_statriv2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(statriv2_interrupt); + void statriv2(machine_config &config); + void funcsino(machine_config &config); + void statriv2v(machine_config &config); }; @@ -590,7 +593,7 @@ GFXDECODE_END * *************************************/ -static MACHINE_CONFIG_START( statriv2 ) +MACHINE_CONFIG_START(statriv2_state::statriv2) /* basic machine hardware */ /* FIXME: The 8085A had a max clock of 6MHz, internally divided by 2! */ MCFG_CPU_ADD("maincpu", I8085A, MASTER_CLOCK) @@ -629,7 +632,7 @@ static MACHINE_CONFIG_START( statriv2 ) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END -static MACHINE_CONFIG_DERIVED( statriv2v, statriv2 ) +MACHINE_CONFIG_DERIVED(statriv2_state::statriv2v, statriv2) /* basic machine hardware */ @@ -640,7 +643,7 @@ static MACHINE_CONFIG_DERIVED( statriv2v, statriv2 ) MCFG_GFXDECODE_MODIFY("gfxdecode", vertical) MACHINE_CONFIG_END -static MACHINE_CONFIG_DERIVED( funcsino, statriv2 ) +MACHINE_CONFIG_DERIVED(statriv2_state::funcsino, statriv2) /* basic machine hardware */ |