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/horizon.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/horizon.cpp')
-rw-r--r-- | src/mame/drivers/horizon.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/horizon.cpp b/src/mame/drivers/horizon.cpp index 4d93f964040..58e250c4a5e 100644 --- a/src/mame/drivers/horizon.cpp +++ b/src/mame/drivers/horizon.cpp @@ -61,6 +61,8 @@ public: DECLARE_READ8_MEMBER(ff_r); + void horizon(machine_config &config); + void horizon2mhz(machine_config &config); private: virtual void machine_reset() override; required_device<cpu_device> m_maincpu; @@ -170,7 +172,7 @@ SLOT_INTERFACE_END // MACHINE_CONFIG( horizon ) //------------------------------------------------- -static MACHINE_CONFIG_START( horizon ) +MACHINE_CONFIG_START(horizon_state::horizon) // basic machine hardware MCFG_CPU_ADD(Z80_TAG, Z80, XTAL_8MHz / 2) MCFG_CPU_PROGRAM_MAP(horizon_mem) @@ -216,7 +218,7 @@ static MACHINE_CONFIG_START( horizon ) MCFG_SOFTWARE_LIST_ADD("flop_list", "horizon") MACHINE_CONFIG_END -static MACHINE_CONFIG_DERIVED( horizon2mhz, horizon ) +MACHINE_CONFIG_DERIVED(horizon_state::horizon2mhz, horizon) MCFG_CPU_MODIFY("z80") MCFG_CPU_CLOCK(XTAL_4MHz / 2) |