diff options
| author | 2017-05-22 18:17:29 +1000 | |
|---|---|---|
| committer | 2017-05-22 18:17:29 +1000 | |
| commit | 89524dd10e3b56a281e335e99e65a3f4f5ebb949 (patch) | |
| tree | 9894dcc761531fb63ccb06a5f557ee53860f03a0 /src/emu/device.cpp | |
| parent | a6ee791664e78112cd59fddd23252c4077c5271e (diff) | |
There's no day like today. This just follows up on the last commit: game drivers are less special special - they have configuration instantiated in the usual way.
Diffstat (limited to 'src/emu/device.cpp')
| -rw-r--r-- | src/emu/device.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/emu/device.cpp b/src/emu/device.cpp index 3c301a5800b..d33bc711cf2 100644 --- a/src/emu/device.cpp +++ b/src/emu/device.cpp @@ -646,6 +646,20 @@ machine_config_constructor device_t::device_mconfig_additions() const //------------------------------------------------- +// device_add_mconfig - add device-specific +// machine configuration +//------------------------------------------------- + +void device_t::device_add_mconfig(machine_config &config) +{ + // backwards-compatibility for devices using free functions + machine_config_constructor const additions(device_mconfig_additions()); + if (additions) + additions(config, this, nullptr); +} + + +//------------------------------------------------- // input_ports - return a pointer to the implicit // input ports description for this device //------------------------------------------------- |
