summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/pt68k4.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/pt68k4.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/pt68k4.cpp')
-rw-r--r--src/mame/drivers/pt68k4.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/pt68k4.cpp b/src/mame/drivers/pt68k4.cpp
index e7385ce6fb7..ce8b2ae3d61 100644
--- a/src/mame/drivers/pt68k4.cpp
+++ b/src/mame/drivers/pt68k4.cpp
@@ -124,6 +124,8 @@ public:
DECLARE_FLOPPY_FORMATS( floppy_formats );
+ void pt68k2(machine_config &config);
+ void pt68k4(machine_config &config);
private:
virtual void machine_start() override;
virtual void machine_reset() override;
@@ -394,7 +396,7 @@ SLOT_INTERFACE_START( pt68k4_isa8_cards )
SLOT_INTERFACE("xtide", ISA8_XTIDE) // Monk only
SLOT_INTERFACE_END
-static MACHINE_CONFIG_START( pt68k2 )
+MACHINE_CONFIG_START(pt68k4_state::pt68k2)
/* basic machine hardware */
MCFG_CPU_ADD(M68K_TAG, M68000, XTAL_16MHz/2) // 68k2 came in 8, 10, and 12 MHz versions
MCFG_CPU_PROGRAM_MAP(pt68k2_mem)
@@ -434,7 +436,7 @@ static MACHINE_CONFIG_START( pt68k2 )
MCFG_SOFTWARE_LIST_ADD("flop525_list", "pt68k2")
MACHINE_CONFIG_END
-static MACHINE_CONFIG_START( pt68k4 )
+MACHINE_CONFIG_START(pt68k4_state::pt68k4)
/* basic machine hardware */
MCFG_CPU_ADD(M68K_TAG, M68000, XTAL_16MHz)
MCFG_CPU_PROGRAM_MAP(pt68k4_mem)