summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/amico2k.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2018-07-16 16:26:01 +1000
committer Vas Crabb <vas@vastheman.com>2018-07-16 16:26:01 +1000
commitf18c7cd65ffdb0ac0b58907b79f9be86ee63f45e (patch)
treecb37881c15bbaf867a71a545c18776f6af57ce97 /src/mame/drivers/amico2k.cpp
parent0e210f4347e1aa2c309dc918f927e05bbc228d15 (diff)
Allow per-device internal layouts and remove some more MCFG_ macros.
Input and screen tags are now resolved relative to a layout's owner device. Easy way to demonstrate is with: mame64 intlc440 -tty ie15 Previously you'd only get the IE15 terminal's layout and you'd be unable to use the INTELLEC 4/40 front panel. Now you'll get the choice of layouts from both the system and the terminal device in video options.
Diffstat (limited to 'src/mame/drivers/amico2k.cpp')
-rw-r--r--src/mame/drivers/amico2k.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/amico2k.cpp b/src/mame/drivers/amico2k.cpp
index a9e8688dce1..015f0534e91 100644
--- a/src/mame/drivers/amico2k.cpp
+++ b/src/mame/drivers/amico2k.cpp
@@ -43,7 +43,7 @@ public:
: driver_device(mconfig, type, tag)
, m_maincpu(*this, "maincpu")
, m_digits(*this, "digit%u", 0U)
- { }
+ { }
void amico2k(machine_config &config);
@@ -221,7 +221,7 @@ MACHINE_CONFIG_START(amico2k_state::amico2k)
MCFG_DEVICE_PROGRAM_MAP(amico2k_mem)
/* video hardware */
- MCFG_DEFAULT_LAYOUT( layout_amico2k )
+ config.set_default_layout(layout_amico2k);
MCFG_DEVICE_ADD("i8255", I8255, 0)
MCFG_I8255_IN_PORTA_CB(READ8(*this, amico2k_state, ppi_pa_r))