From d469cc04bcace0f601802301caeddc5b473b75f2 Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Sun, 7 Jan 2018 22:20:14 +0100 Subject: 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. --- src/mame/drivers/alto2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mame/drivers/alto2.cpp') diff --git a/src/mame/drivers/alto2.cpp b/src/mame/drivers/alto2.cpp index d7d6cff55d5..99b35501ad6 100644 --- a/src/mame/drivers/alto2.cpp +++ b/src/mame/drivers/alto2.cpp @@ -33,6 +33,7 @@ public: DECLARE_DRIVER_INIT(alto2); DECLARE_MACHINE_RESET(alto2); + void alto2(machine_config &config); protected: required_device m_maincpu; required_device m_speaker; @@ -272,7 +273,7 @@ ADDRESS_MAP_START( alto2_iomem_map, 2, 16, alto2_state ) AM_RANGE(0, 2*ALTO2_RAM_SIZE-1) AM_DEVICE16( "maincpu", alto2_cpu_device, iomem_map, 0xffffU ) ADDRESS_MAP_END -static MACHINE_CONFIG_START( alto2 ) +MACHINE_CONFIG_START(alto2_state::alto2) // Basic machine hardware // SYSCLK is Display Control part A51 (tagged 29.4MHz) divided by 5(?) // 5.8MHz according to de.wikipedia.org/wiki/Xerox_Alto -- cgit v1.2.3