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/ef9340_1.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/ef9340_1.cpp')
-rw-r--r-- | src/devices/video/ef9340_1.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/devices/video/ef9340_1.cpp b/src/devices/video/ef9340_1.cpp index deb26990e16..c218645208c 100644 --- a/src/devices/video/ef9340_1.cpp +++ b/src/devices/video/ef9340_1.cpp @@ -40,7 +40,7 @@ ef9340_1_device::ef9340_1_device(const machine_config &mconfig, const char *tag, , device_video_interface(mconfig, *this) , m_charset(*this, "ef9340_1") , m_write_exram(*this) - , m_read_exram(*this) + , m_read_exram(*this, 0xff) { m_offset_x = 0; m_offset_y = 0; @@ -61,9 +61,6 @@ const tiny_rom_entry *ef9340_1_device::device_rom_region() const void ef9340_1_device::device_start() { - m_write_exram.resolve_safe(); - m_read_exram.resolve_safe(0xff); - // let the screen create our temporary bitmap with the screen's dimensions screen().register_screen_bitmap(m_tmp_bitmap); |