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/chessmst.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/chessmst.cpp')
-rw-r--r-- | src/mame/drivers/chessmst.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mame/drivers/chessmst.cpp b/src/mame/drivers/chessmst.cpp index 6dddf2ce6e6..5c84b7e1069 100644 --- a/src/mame/drivers/chessmst.cpp +++ b/src/mame/drivers/chessmst.cpp @@ -65,6 +65,9 @@ public: DECLARE_INPUT_CHANGED_MEMBER(view_monitor_button); DECLARE_WRITE_LINE_MEMBER( timer_555_w ); + void chessmst(machine_config &config); + void chessmsta(machine_config &config); + void chessmstdm(machine_config &config); private: void update_display(); }; @@ -353,7 +356,7 @@ static const z80_daisy_config chessmstdm_daisy_chain[] = { nullptr } }; -static MACHINE_CONFIG_START( chessmst ) +MACHINE_CONFIG_START(chessmst_state::chessmst) /* basic machine hardware */ MCFG_CPU_ADD("maincpu", Z80, XTAL_9_8304MHz/4) // U880 Z80 clone @@ -378,7 +381,7 @@ static MACHINE_CONFIG_START( chessmst ) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MACHINE_CONFIG_END -static MACHINE_CONFIG_START( chessmsta ) +MACHINE_CONFIG_START(chessmst_state::chessmsta) /* basic machine hardware */ MCFG_CPU_ADD("maincpu", Z80, XTAL_8MHz/4) // U880 Z80 clone @@ -403,7 +406,7 @@ static MACHINE_CONFIG_START( chessmsta ) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MACHINE_CONFIG_END -static MACHINE_CONFIG_START( chessmstdm ) +MACHINE_CONFIG_START(chessmst_state::chessmstdm) /* basic machine hardware */ MCFG_CPU_ADD("maincpu", Z80, XTAL_8MHz/2) // U880 Z80 clone |