diff options
| author | 2023-06-17 01:10:05 +1000 | |
|---|---|---|
| committer | 2023-06-17 01:10:05 +1000 | |
| commit | e9c1f4a42a6758a6fb75403e28c7dc6cf869081c (patch) | |
| tree | 8e0b6d960bed4baec2408c9ab950218592ef33ec /src/devices/machine/dmac.cpp | |
| parent | c1ceb6e016763537c5109cc76fe5d1b4ae72fdb3 (diff) | |
emu/devcb.h: Eliminated the need to call resolve() on callbacks. (#11333)
Read callbacks now need a default return value supplied at construction.
Replaced isnull() with isunset() which tells you if the callback wasn't
configured rather than whether it isn't safe to call.
Enabled validation of device callbacks (it seems it was disabled at some
point, probably accidentally).
Device callbacks and object finders now implement the same interface for
resolution.
Diffstat (limited to 'src/devices/machine/dmac.cpp')
| -rw-r--r-- | src/devices/machine/dmac.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/devices/machine/dmac.cpp b/src/devices/machine/dmac.cpp index 8852bc2f4cf..fd939c981c4 100644 --- a/src/devices/machine/dmac.cpp +++ b/src/devices/machine/dmac.cpp @@ -40,9 +40,9 @@ amiga_dmac_device::amiga_dmac_device(const machine_config &mconfig, const char * m_cfgout_handler(*this), m_int_handler(*this), m_xdack_handler(*this), - m_scsi_read_handler(*this), + m_scsi_read_handler(*this, 0), m_scsi_write_handler(*this), - m_io_read_handler(*this), + m_io_read_handler(*this, 0), m_io_write_handler(*this), m_space(nullptr), m_rom(nullptr), @@ -64,14 +64,6 @@ amiga_dmac_device::amiga_dmac_device(const machine_config &mconfig, const char * void amiga_dmac_device::device_start() { - // resolve callbacks - m_cfgout_handler.resolve_safe(); - m_int_handler.resolve_safe(); - m_xdack_handler.resolve_safe(); - m_scsi_read_handler.resolve_safe(0); - m_scsi_write_handler.resolve_safe(); - m_io_read_handler.resolve_safe(0); - m_io_write_handler.resolve_safe(); } //------------------------------------------------- |
