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/homedata.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/homedata.cpp')
-rw-r--r-- | src/mame/drivers/homedata.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/homedata.cpp b/src/mame/drivers/homedata.cpp index c0c20ee7b90..4eb78392ea3 100644 --- a/src/mame/drivers/homedata.cpp +++ b/src/mame/drivers/homedata.cpp @@ -1211,7 +1211,7 @@ MACHINE_RESET_MEMBER(homedata_state,reikaids) m_gfx_bank[1] = 0; // this is not used by reikaids } -static MACHINE_CONFIG_START( mrokumei ) +MACHINE_CONFIG_START(homedata_state::mrokumei) /* basic machine hardware */ MCFG_CPU_ADD("maincpu", M6809, 16000000/4) /* 4MHz ? */ @@ -1258,7 +1258,7 @@ MACHINE_CONFIG_END /**************************************************************************/ -static MACHINE_CONFIG_START( reikaids ) +MACHINE_CONFIG_START(homedata_state::reikaids) /* basic machine hardware */ MCFG_CPU_ADD("maincpu", M6809, 16000000/4) /* 4MHz ? */ @@ -1314,7 +1314,7 @@ MACHINE_CONFIG_END /**************************************************************************/ -static MACHINE_CONFIG_START( pteacher ) +MACHINE_CONFIG_START(homedata_state::pteacher) /* basic machine hardware */ MCFG_CPU_ADD("maincpu", M6809, 16000000/4) /* 4MHz ? */ @@ -1364,13 +1364,13 @@ static MACHINE_CONFIG_START( pteacher ) MCFG_SOUND_ROUTE_EX(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE_EX(0, "dac", -1.0, DAC_VREF_NEG_INPUT) MACHINE_CONFIG_END -static MACHINE_CONFIG_DERIVED( mjkinjas, pteacher ) +MACHINE_CONFIG_DERIVED(homedata_state::mjkinjas, pteacher) MCFG_CPU_MODIFY("audiocpu") MCFG_CPU_CLOCK(11000000) /* 11MHz ? */ MACHINE_CONFIG_END -static MACHINE_CONFIG_DERIVED( lemnangl, pteacher ) +MACHINE_CONFIG_DERIVED(homedata_state::lemnangl, pteacher) /* video hardware */ MCFG_GFXDECODE_MODIFY("gfxdecode", lemnangl) @@ -1483,7 +1483,7 @@ GFXDECODE_END /* clocks are 16mhz and 9mhz */ -static MACHINE_CONFIG_START( mirderby ) +MACHINE_CONFIG_START(homedata_state::mirderby) MCFG_CPU_ADD("maincpu", M6809, 16000000/8) /* 2 Mhz */ MCFG_CPU_PROGRAM_MAP(cpu2_map) |