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/mmd1.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/mmd1.cpp')
-rw-r--r-- | src/mame/drivers/mmd1.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/mmd1.cpp b/src/mame/drivers/mmd1.cpp index a566a5af8ee..f238ed44397 100644 --- a/src/mame/drivers/mmd1.cpp +++ b/src/mame/drivers/mmd1.cpp @@ -175,6 +175,8 @@ public: DECLARE_MACHINE_RESET(mmd1); DECLARE_MACHINE_RESET(mmd2); required_device<cpu_device> m_maincpu; + void mmd1(machine_config &config); + void mmd2(machine_config &config); }; @@ -475,7 +477,7 @@ We preset all banks here, so that bankswitching will incur no speed penalty. membank("bank8")->configure_entry(2, &p_ram[0xd800]); } -static MACHINE_CONFIG_START( mmd1 ) +MACHINE_CONFIG_START(mmd1_state::mmd1) /* basic machine hardware */ MCFG_CPU_ADD("maincpu",I8080, 6750000 / 9) MCFG_CPU_PROGRAM_MAP(mmd1_mem) @@ -487,7 +489,7 @@ static MACHINE_CONFIG_START( mmd1 ) MCFG_DEFAULT_LAYOUT(layout_mmd1) MACHINE_CONFIG_END -static MACHINE_CONFIG_START( mmd2 ) +MACHINE_CONFIG_START(mmd1_state::mmd2) /* basic machine hardware */ MCFG_CPU_ADD("maincpu",I8080, 6750000 / 9) MCFG_CPU_PROGRAM_MAP(mmd2_mem) |