mirror of https://github.com/LIJI32/SameBoy.git
^C before loading a ROM quits again
This commit is contained in:
parent
8c30a7c90c
commit
1d7ecb7f1b
|
@ -699,6 +699,9 @@ static void rumble(GB_gameboy_t *gb, double amp)
|
|||
static void debugger_interrupt(int ignore)
|
||||
{
|
||||
#ifndef _WIN32
|
||||
if (!GB_is_inited(&gb)) {
|
||||
exit(0);
|
||||
}
|
||||
if (GB_debugger_is_stopped(&gb)) {
|
||||
pending_command = GB_SDL_QUIT_COMMAND;
|
||||
console_line_ready(); // Force the debugger wait-loop to process the command
|
||||
|
|
Loading…
Reference in New Issue