summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/driver.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-01-17 11:25:14 -0500
committer AJR <ajrhacker@users.noreply.github.com>2018-01-17 11:25:34 -0500
commitd1b698af363fed1eb62846179e536c230502befa (patch)
treecd38ee57c28761f9f6e7ecbb0002295d72ffc451 /src/emu/driver.cpp
parentd469cc04bcace0f601802301caeddc5b473b75f2 (diff)
std::function is too inefficient, use a device delegate instead (nw)
Diffstat (limited to 'src/emu/driver.cpp')
-rw-r--r--src/emu/driver.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emu/driver.cpp b/src/emu/driver.cpp
index 889730da59c..49be813c8cb 100644
--- a/src/emu/driver.cpp
+++ b/src/emu/driver.cpp
@@ -173,7 +173,8 @@ const tiny_rom_entry *driver_device::device_rom_region() const
void driver_device::device_add_mconfig(machine_config &config)
{
assert(m_system);
- m_system->machine_creator(config, this);
+ machine_config_delegate creator(m_system->machine_creator, *this);
+ creator(config);
}