summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/driver.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2017-05-22 18:55:02 +1000
committer Vas Crabb <vas@vastheman.com>2017-05-22 18:55:02 +1000
commitfa80bef249997659ae4341463fdb85f2a43b230a (patch)
treeec99a8c51a65e241649c86a30221af0c1d4c5a15 /src/emu/driver.cpp
parentf7180a9504fa1ac39cb6c5f2af45f56c70a5bd77 (diff)
well, that causes mpu4 to take way too much memory to compile, the changes to device instantiation still apply (nw)
Diffstat (limited to 'src/emu/driver.cpp')
-rw-r--r--src/emu/driver.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/emu/driver.cpp b/src/emu/driver.cpp
index 846f48c26ef..ceed36bd493 100644
--- a/src/emu/driver.cpp
+++ b/src/emu/driver.cpp
@@ -161,6 +161,27 @@ const tiny_rom_entry *driver_device::device_rom_region() const
//-------------------------------------------------
+// device_add_mconfig - add machine configuration
+//-------------------------------------------------
+
+void driver_device::device_add_mconfig(machine_config &config)
+{
+ m_system->machine_config(config, this, nullptr);
+}
+
+
+//-------------------------------------------------
+// device_input_ports - return a pointer to the
+// game's input ports
+//-------------------------------------------------
+
+ioport_constructor driver_device::device_input_ports() const
+{
+ return m_system->ipt;
+}
+
+
+//-------------------------------------------------
// device_start - device override which calls
// the various helpers
//-------------------------------------------------