mirror of
https://github.com/holub/mame
synced 2025-04-24 09:20:02 +03:00
VBLANK based watchdogs can be disabled once again
Removed debugging fprintf
This commit is contained in:
parent
0eca6ca59c
commit
793cf2e715
@ -296,7 +296,6 @@ void debug_cpu_init(running_machine *machine)
|
||||
}
|
||||
|
||||
/* add callback for breaking on VBLANK */
|
||||
fprintf(stderr,"Debug 1\n");
|
||||
video_screen_register_vbl_cb(machine, NULL, on_vblank);
|
||||
|
||||
add_exit_callback(machine, debug_cpu_exit);
|
||||
|
@ -86,7 +86,7 @@ static TIMER_CALLBACK( watchdog_callback )
|
||||
static void on_vblank(running_machine *machine, screen_state *screen, int vblank_state)
|
||||
{
|
||||
/* VBLANK starting */
|
||||
if (vblank_state)
|
||||
if (vblank_state && watchdog_enabled)
|
||||
{
|
||||
/* check the watchdog */
|
||||
if (machine->config->watchdog_vblank_count != 0 && --watchdog_counter == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user