From a6c5a8fdaae0db7a383b9551246a4d675c0b3b41 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sat, 3 Sep 2016 13:34:49 +0300 Subject: [PATCH] Fixed a bug that caused the Cocoa port to freeze sometimes if the emulator was reset while debugging. --- Core/gb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/gb.h b/Core/gb.h index 76006066..bd8d0eb8 100644 --- a/Core/gb.h +++ b/Core/gb.h @@ -379,7 +379,7 @@ typedef struct GB_gameboy_s { size_t ir_queue_length; /*** Debugger ***/ - bool debug_stopped; + volatile bool debug_stopped; bool debug_fin_command, debug_next_command; /* Breakpoints */