diff options
author | 2018-01-07 22:20:14 +0100 | |
---|---|---|
committer | 2018-01-17 16:11:18 +0100 | |
commit | d469cc04bcace0f601802301caeddc5b473b75f2 (patch) | |
tree | a9d71540c9c69cee5ab3a533476b81833fa02f5f /src/mame/drivers/tutor.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/tutor.cpp')
-rw-r--r-- | src/mame/drivers/tutor.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/tutor.cpp b/src/mame/drivers/tutor.cpp index 362336fa4b7..83cf2d1168a 100644 --- a/src/mame/drivers/tutor.cpp +++ b/src/mame/drivers/tutor.cpp @@ -227,6 +227,8 @@ public: int m_centronics_busy; DECLARE_WRITE_LINE_MEMBER(write_centronics_busy); + void pyuutajr(machine_config &config); + void tutor(machine_config &config); }; @@ -733,7 +735,7 @@ static INPUT_PORTS_START(pyuutajr) PORT_BIT(0xff, IP_ACTIVE_HIGH, IPT_UNUSED) INPUT_PORTS_END -static MACHINE_CONFIG_START( tutor ) +MACHINE_CONFIG_START(tutor_state::tutor) // basic machine hardware // TMS9995 CPU @ 10.7 MHz // No lines connected yet @@ -768,7 +770,7 @@ static MACHINE_CONFIG_START( tutor ) MCFG_SOFTWARE_LIST_ADD("cart_list","tutor") MACHINE_CONFIG_END -static MACHINE_CONFIG_DERIVED( pyuutajr, tutor ) +MACHINE_CONFIG_DERIVED(tutor_state::pyuutajr, tutor) MCFG_CPU_MODIFY("maincpu") MCFG_CPU_PROGRAM_MAP(pyuutajr_mem) //MCFG_DEVICE_REMOVE("centronics") |