diff options
author | 2018-03-03 18:18:08 +0100 | |
---|---|---|
committer | 2018-03-04 04:18:08 +1100 | |
commit | 3b923d59ccb8d2d8e386392518450006f8e644fe (patch) | |
tree | 73c48568e76d69edbde9f96a3f57d173dd05a747 /src/emu/diexec.cpp | |
parent | 25472091b626bd01ef47f11389a4b2ebe0fc0008 (diff) |
destaticify initializations (nw) (#3289)
* destaticify initializations (nw)
* fix this->set_screen (nw)
Diffstat (limited to 'src/emu/diexec.cpp')
-rw-r--r-- | src/emu/diexec.cpp | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/src/emu/diexec.cpp b/src/emu/diexec.cpp index 0958108fe42..8770349cf5f 100644 --- a/src/emu/diexec.cpp +++ b/src/emu/diexec.cpp @@ -82,64 +82,6 @@ device_execute_interface::~device_execute_interface() //------------------------------------------------- -// static_set_disable - configuration helper to -// set the disabled state of a device -//------------------------------------------------- - -void device_execute_interface::static_set_disable(device_t &device) -{ - device_execute_interface *exec; - if (!device.interface(exec)) - throw emu_fatalerror("MCFG_DEVICE_DISABLE called on device '%s' with no execute interface", device.tag()); - exec->m_disabled = true; -} - - -//------------------------------------------------- -// static_set_vblank_int - configuration helper -// to set up VBLANK interrupts on the device -//------------------------------------------------- - -void device_execute_interface::static_set_vblank_int(device_t &device, device_interrupt_delegate function, const char *tag, int rate) -{ - device_execute_interface *exec; - if (!device.interface(exec)) - throw emu_fatalerror("MCFG_DEVICE_VBLANK_INT called on device '%s' with no execute interface", device.tag()); - exec->m_vblank_interrupt = function; - exec->m_vblank_interrupt_screen = tag; -} - - -//------------------------------------------------- -// static_set_periodic_int - configuration helper -// to set up periodic interrupts on the device -//------------------------------------------------- - -void device_execute_interface::static_set_periodic_int(device_t &device, device_interrupt_delegate function, const attotime &rate) -{ - device_execute_interface *exec; - if (!device.interface(exec)) - throw emu_fatalerror("MCFG_DEVICE_PERIODIC_INT called on device '%s' with no execute interface", device.tag()); - exec->m_timed_interrupt = function; - exec->m_timed_interrupt_period = rate; -} - - -//------------------------------------------------- -// set_irq_acknowledge_callback - configuration helper -// to setup callback for IRQ acknowledge -//------------------------------------------------- - -void device_execute_interface::static_set_irq_acknowledge_callback(device_t &device, device_irq_acknowledge_delegate callback) -{ - device_execute_interface *exec; - if (!device.interface(exec)) - throw emu_fatalerror("MCFG_DEVICE_IRQ_ACKNOWLEDGE called on device '%s' with no execute interface", device.tag()); - exec->m_driver_irq = callback; -} - - -//------------------------------------------------- // executing - return true if this device is // within its execute function //------------------------------------------------- |