From e9c1f4a42a6758a6fb75403e28c7dc6cf869081c Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sat, 17 Jun 2023 01:10:05 +1000 Subject: 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. --- src/devices/sound/msm5205.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/devices/sound/msm5205.cpp') diff --git a/src/devices/sound/msm5205.cpp b/src/devices/sound/msm5205.cpp index ba196a419a3..f3f1f5e6302 100644 --- a/src/devices/sound/msm5205.cpp +++ b/src/devices/sound/msm5205.cpp @@ -91,9 +91,6 @@ msm6585_device::msm6585_device(const machine_config &mconfig, const char *tag, d void msm5205_device::device_start() { - m_vck_cb.resolve_safe(); - m_vck_legacy_cb.resolve(); - /* compute the difference tables */ compute_tables(); @@ -190,7 +187,7 @@ TIMER_CALLBACK_MEMBER(msm5205_device::update_adpcm) int new_signal; // callback user handler and latch next data - if (!m_vck_legacy_cb.isnull()) + if (!m_vck_legacy_cb.isunset()) m_vck_legacy_cb(1); // reset check at last hiedge of VCK -- cgit v1.2.3-70-g09d2