summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/alto2.cpp
diff options
context:
space:
mode:
authorGravatarGravatar Olivier Galibert <galibert@pobox.com>2018-01-07 22:20:14 +0100
committerGravatarGravatar Olivier Galibert <galibert@pobox.com>2018-01-17 16:11:18 +0100
commitd469cc04bcace0f601802301caeddc5b473b75f2 (patch) (github)
treea9d71540c9c69cee5ab3a533476b81833fa02f5f /src/mame/drivers/alto2.cpp
parent9f383f76ce6f00cc3320e5ba53dc323781e0077b (diff)
downloadmame-d469cc04bcace0f601802301caeddc5b473b75f2.tar.bz2
mame-d469cc04bcace0f601802301caeddc5b473b75f2.zip
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/alto2.cpp')
-rw-r--r--src/mame/drivers/alto2.cpp3
1 files changed, 2 insertions, 1 deletions
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<cpu_device> m_maincpu;
required_device<speaker_sound_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