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/video/pc_xga.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/video/pc_xga.cpp')
-rw-r--r-- | src/devices/video/pc_xga.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/devices/video/pc_xga.cpp b/src/devices/video/pc_xga.cpp index bc474a81cfb..60dc15a8538 100644 --- a/src/devices/video/pc_xga.cpp +++ b/src/devices/video/pc_xga.cpp @@ -14,7 +14,7 @@ DEFINE_DEVICE_TYPE(OTI111, oak_oti111_vga_device, "oti111_vga", "Oak Techn xga_copro_device::xga_copro_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, XGA_COPRO, tag, owner, clock) , m_var(TYPE::XGA) - , m_mem_read_cb(*this) + , m_mem_read_cb(*this, 0) , m_mem_write_cb(*this) { } @@ -750,8 +750,6 @@ void xga_copro_device::xga_write(offs_t offset, u8 data) void xga_copro_device::device_start() { - m_mem_read_cb.resolve_safe(0); - m_mem_write_cb.resolve_safe(); } void xga_copro_device::device_reset() |