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/atari_s2.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/atari_s2.cpp')
-rw-r--r-- | src/mame/drivers/atari_s2.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/atari_s2.cpp b/src/mame/drivers/atari_s2.cpp index 7ca3b2b1628..0acbd73284b 100644 --- a/src/mame/drivers/atari_s2.cpp +++ b/src/mame/drivers/atari_s2.cpp @@ -53,6 +53,8 @@ public: DECLARE_WRITE8_MEMBER(display_w); TIMER_DEVICE_CALLBACK_MEMBER(irq); TIMER_DEVICE_CALLBACK_MEMBER(timer_s); + void atari_s2(machine_config &config); + void atari_s3(machine_config &config); private: bool m_timer_sb; uint8_t m_timer_s[5]; @@ -465,7 +467,7 @@ void atari_s2_state::machine_reset() } -static MACHINE_CONFIG_START( atari_s2 ) +MACHINE_CONFIG_START(atari_s2_state::atari_s2) /* basic machine hardware */ MCFG_CPU_ADD("maincpu", M6800, XTAL_4MHz / 4) MCFG_CPU_PROGRAM_MAP(atari_s2_map) @@ -489,7 +491,7 @@ static MACHINE_CONFIG_START( atari_s2 ) MCFG_TIMER_DRIVER_ADD_PERIODIC("timer_s", atari_s2_state, timer_s, attotime::from_hz(150000)) MACHINE_CONFIG_END -static MACHINE_CONFIG_DERIVED( atari_s3, atari_s2 ) +MACHINE_CONFIG_DERIVED(atari_s2_state::atari_s3, atari_s2) MCFG_CPU_MODIFY("maincpu") MCFG_CPU_PROGRAM_MAP(atari_s3_map) MACHINE_CONFIG_END |