diff options
| author | 2011-04-27 20:34:45 +0000 | |
|---|---|---|
| committer | 2011-04-27 20:34:45 +0000 | |
| commit | af94c692bb616def82ec38e717dea5e507d310fe (patch) | |
| tree | 62402705206111cd10ec15d585de338f2881ea14 /src/emu/debug/debugcpu.c | |
| parent | 9092f1596454dd7b76e954038f7dd25f3305e345 (diff) | |
Switch to using delegates for some callbacks:
- non-device timer callbacks
- machine state changing callbacks
- configuration callbacks
- per-screen VBLANK callbacks
- DRC backend callbacks
For the timer case only, I added wrappers for the old-style functions.
Over time, drivers should switch to device timers instead, reducing the
number of timers that are directly allocated through the scheduler.
Diffstat (limited to 'src/emu/debug/debugcpu.c')
| -rw-r--r-- | src/emu/debug/debugcpu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/debug/debugcpu.c b/src/emu/debug/debugcpu.c index 37fc7327387..8489d9e1666 100644 --- a/src/emu/debug/debugcpu.c +++ b/src/emu/debug/debugcpu.c @@ -113,7 +113,7 @@ struct _debugcpu_private /* internal helpers */ static void debug_cpu_exit(running_machine &machine); -static void on_vblank(screen_device &device, void *param, bool vblank_state); +static void on_vblank(running_machine &machine, screen_device &device, bool vblank_state); static void reset_transient_flags(running_machine &machine); static void process_source_file(running_machine &machine); @@ -182,9 +182,9 @@ void debug_cpu_init(running_machine &machine) /* add callback for breaking on VBLANK */ if (machine.primary_screen != NULL) - machine.primary_screen->register_vblank_callback(on_vblank, NULL); + machine.primary_screen->register_vblank_callback(vblank_state_delegate(FUNC(on_vblank), &machine)); - machine.add_notifier(MACHINE_NOTIFY_EXIT, debug_cpu_exit); + machine.add_notifier(MACHINE_NOTIFY_EXIT, machine_notify_delegate(FUNC(debug_cpu_exit), &machine)); } @@ -1068,7 +1068,7 @@ static void debug_cpu_exit(running_machine &machine) on_vblank - called when a VBLANK hits -------------------------------------------------*/ -static void on_vblank(screen_device &device, void *param, bool vblank_state) +static void on_vblank(running_machine &machine, screen_device &device, bool vblank_state) { /* just set a global flag to be consumed later */ if (vblank_state) |
