diff options
| author | 2013-07-13 07:19:46 +0000 | |
|---|---|---|
| committer | 2013-07-13 07:19:46 +0000 | |
| commit | c96889730f23cb7635a99c433a7af3b9191f7b05 (patch) | |
| tree | f6684441f544cd37e5c19df9e33facfcb60402fc /src/emu/diexec.h | |
| parent | 45505e51b04d4b172bbfa7ea0d9a771a987c42db (diff) | |
Resolve devices specified for vblank/periodic interrupts relative to the
owner device, not the device itself, to make it consistent with devcb2
patterns. This change is mostly hidden since most drivers use
MCFG_DEVICE_VBLANK_INT_DRIVER and MCFG_DEVICE_PERIODIC_INT_DRIVER. But
for those few cases where a device was explicitly specified, it reduces
the awkwardness.
We should probably standardize this when using device_delegates for
consistency.
A full rebuild is necessary after taking this change, since the macros
mentioned above have changed their parameters.
Diffstat (limited to 'src/emu/diexec.h')
| -rw-r--r-- | src/emu/diexec.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/diexec.h b/src/emu/diexec.h index 86f5078572f..3b82da24d72 100644 --- a/src/emu/diexec.h +++ b/src/emu/diexec.h @@ -119,13 +119,13 @@ enum #define MCFG_DEVICE_VBLANK_INT(_tag, _func) \ device_execute_interface::static_set_vblank_int(*device, _func, _tag); #define MCFG_DEVICE_VBLANK_INT_DRIVER(_tag, _class, _func) \ - device_execute_interface::static_set_vblank_int(*device, device_interrupt_delegate(&_class::_func, #_class "::" #_func, DEVICE_SELF_OWNER, (_class *)0), _tag); + device_execute_interface::static_set_vblank_int(*device, device_interrupt_delegate(&_class::_func, #_class "::" #_func, DEVICE_SELF, (_class *)0), _tag); #define MCFG_DEVICE_VBLANK_INT_DEVICE(_devtag, _tag, _class, _func) \ device_execute_interface::static_set_vblank_int(*device, device_interrupt_delegate(&_class::_func, #_class "::" #_func, _devtag, (_class *)0), _tag); #define MCFG_DEVICE_PERIODIC_INT(_func, _rate) \ device_execute_interface::static_set_periodic_int(*device, _func, attotime::from_hz(_rate)); #define MCFG_DEVICE_PERIODIC_INT_DRIVER(_class, _func, _rate) \ - device_execute_interface::static_set_periodic_int(*device, device_interrupt_delegate(&_class::_func, #_class "::" #_func, DEVICE_SELF_OWNER, (_class *)0), attotime::from_hz(_rate)); + device_execute_interface::static_set_periodic_int(*device, device_interrupt_delegate(&_class::_func, #_class "::" #_func, DEVICE_SELF, (_class *)0), attotime::from_hz(_rate)); #define MCFG_DEVICE_PERIODIC_INT_DEVICE(_devtag, _class, _func, _rate) \ device_execute_interface::static_set_periodic_int(*device, device_interrupt_delegate(&_class::_func, #_class "::" #_func, _devtag, (_class *)0), attotime::from_hz(_rate)); |
