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/1945kiii.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/1945kiii.cpp')
-rw-r--r-- | src/mame/drivers/1945kiii.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/1945kiii.cpp b/src/mame/drivers/1945kiii.cpp index 53f6550d03b..bdadda9b0a3 100644 --- a/src/mame/drivers/1945kiii.cpp +++ b/src/mame/drivers/1945kiii.cpp @@ -91,6 +91,8 @@ public: required_device<cpu_device> m_maincpu; required_device<gfxdecode_device> m_gfxdecode; required_device<palette_device> m_palette; + void flagrall(machine_config &config); + void k3(machine_config &config); }; @@ -367,7 +369,7 @@ void k3_state::machine_start() { } -static MACHINE_CONFIG_START( flagrall ) +MACHINE_CONFIG_START(k3_state::flagrall) MCFG_CPU_ADD("maincpu", M68000, MASTER_CLOCK ) // ? MCFG_CPU_PROGRAM_MAP(flagrall_map) @@ -393,7 +395,7 @@ static MACHINE_CONFIG_START( flagrall ) MACHINE_CONFIG_END -static MACHINE_CONFIG_DERIVED( k3, flagrall ) +MACHINE_CONFIG_DERIVED(k3_state::k3, flagrall) MCFG_CPU_MODIFY("maincpu") MCFG_CPU_PROGRAM_MAP(k3_map) |