diff options
author | 2018-03-03 18:18:08 +0100 | |
---|---|---|
committer | 2018-03-04 04:18:08 +1100 | |
commit | 3b923d59ccb8d2d8e386392518450006f8e644fe (patch) | |
tree | 73c48568e76d69edbde9f96a3f57d173dd05a747 /src/devices/machine/watchdog.h | |
parent | 25472091b626bd01ef47f11389a4b2ebe0fc0008 (diff) |
destaticify initializations (nw) (#3289)
* destaticify initializations (nw)
* fix this->set_screen (nw)
Diffstat (limited to 'src/devices/machine/watchdog.h')
-rw-r--r-- | src/devices/machine/watchdog.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/machine/watchdog.h b/src/devices/machine/watchdog.h index 2e17fcdea98..e0f937bf440 100644 --- a/src/devices/machine/watchdog.h +++ b/src/devices/machine/watchdog.h @@ -16,9 +16,9 @@ #define MCFG_WATCHDOG_MODIFY(_tag) \ MCFG_DEVICE_MODIFY(_tag) #define MCFG_WATCHDOG_VBLANK_INIT(_screen, _count) \ - watchdog_timer_device::static_set_vblank_count(*device, _screen, _count); + downcast<watchdog_timer_device &>(*device).set_vblank_count(_screen, _count); #define MCFG_WATCHDOG_TIME_INIT(_time) \ - watchdog_timer_device::static_set_time(*device, _time); + downcast<watchdog_timer_device &>(*device).set_time(_time); //************************************************************************** @@ -34,8 +34,8 @@ public: watchdog_timer_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // inline configuration helpers - static void static_set_vblank_count(device_t &device, const char *screen_tag, int32_t count); - static void static_set_time(device_t &device, attotime time); + void set_vblank_count(const char *screen_tag, int32_t count) { m_screen_tag = screen_tag; m_vblank_count = count; } + void set_time(attotime time) { m_time = time; } // watchdog control void watchdog_reset(); |