summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/mfabfz.cpp
diff options
context:
space:
mode:
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
commitd469cc04bcace0f601802301caeddc5b473b75f2 (patch)
treea9d71540c9c69cee5ab3a533476b81833fa02f5f /src/mame/drivers/mfabfz.cpp
parent9f383f76ce6f00cc3320e5ba53dc323781e0077b (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/mfabfz.cpp')
-rw-r--r--src/mame/drivers/mfabfz.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/mfabfz.cpp b/src/mame/drivers/mfabfz.cpp
index d16b7947700..cd14a902002 100644
--- a/src/mame/drivers/mfabfz.cpp
+++ b/src/mame/drivers/mfabfz.cpp
@@ -55,6 +55,8 @@ public:
, m_maincpu(*this, "maincpu")
{ }
+ void mfabfz85(machine_config &config);
+ void mfabfz(machine_config &config);
private:
virtual void machine_reset() override;
required_device<cpu_device> m_maincpu;
@@ -93,7 +95,7 @@ void mfabfz_state::machine_reset()
}
-static MACHINE_CONFIG_START( mfabfz )
+MACHINE_CONFIG_START(mfabfz_state::mfabfz)
/* basic machine hardware */
MCFG_CPU_ADD("maincpu",I8085A, XTAL_4MHz / 2)
MCFG_CPU_PROGRAM_MAP(mfabfz_mem)
@@ -127,7 +129,7 @@ static DEVICE_INPUT_DEFAULTS_START( terminal )
DEVICE_INPUT_DEFAULTS( "RS232_STOPBITS", 0xff, RS232_STOPBITS_2 )
DEVICE_INPUT_DEFAULTS_END
-static MACHINE_CONFIG_START( mfabfz85 )
+MACHINE_CONFIG_START(mfabfz_state::mfabfz85)
/* basic machine hardware */
MCFG_CPU_ADD("maincpu",I8085A, XTAL_4MHz / 2)
MCFG_CPU_PROGRAM_MAP(mfabfz_mem)