summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/destroyr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/destroyr.cpp')
-rw-r--r--src/mame/drivers/destroyr.cpp24
1 files changed, 2 insertions, 22 deletions
diff --git a/src/mame/drivers/destroyr.cpp b/src/mame/drivers/destroyr.cpp
index 4120b27e342..62561c2a314 100644
--- a/src/mame/drivers/destroyr.cpp
+++ b/src/mame/drivers/destroyr.cpp
@@ -56,10 +56,6 @@ public:
private:
virtual void machine_start() override;
virtual void machine_reset() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param) override;
-
- static const device_timer_id TIMER_DIAL = 0;
- static const device_timer_id TIMER_FRAME = 1;
void main_map(address_map &map);
@@ -180,22 +176,6 @@ uint32_t destroyr_state::screen_update(screen_device &screen, bitmap_ind16 &bitm
}
-void destroyr_state::device_timer(emu_timer &timer, device_timer_id id, int param)
-{
- switch (id)
- {
- case TIMER_DIAL:
- dial_callback(param);
- break;
- case TIMER_FRAME:
- frame_callback(param);
- break;
- default:
- throw emu_fatalerror("Unknown id in destroyr_state::device_timer");
- }
-}
-
-
TIMER_CALLBACK_MEMBER(destroyr_state::dial_callback)
{
int dial = param;
@@ -476,8 +456,8 @@ void destroyr_state::palette_init(palette_device &palette) const
void destroyr_state::machine_start()
{
- m_dial_timer = timer_alloc(TIMER_DIAL);
- m_frame_timer = timer_alloc(TIMER_FRAME);
+ m_dial_timer = timer_alloc(FUNC(destroyr_state::dial_callback), this);
+ m_frame_timer = timer_alloc(FUNC(destroyr_state::frame_callback), this);
save_item(NAME(m_cursor));
save_item(NAME(m_wavemod));