From 859dda24f407fa679e43061c77c316b75b5d307a Mon Sep 17 00:00:00 2001 From: Richard Goedeken Date: Tue, 6 Nov 2018 07:30:55 -0800 Subject: [PATCH] disable the debugger in the core if we are not running it in the ui-console, otherwise it will hang forever in the paused state --- src/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.c b/src/main.c index d9b14f1..59ce33a 100644 --- a/src/main.c +++ b/src/main.c @@ -1064,6 +1064,12 @@ int main(int argc, char *argv[]) SDL_CreateThread(debugger_loop, NULL); #endif } + else + { + /* Set Core config parameter to disable debugger */ + int bEnableDebugger = 0; + (*ConfigSetParameter)(l_ConfigCore, "EnableDebugger", M64TYPE_BOOL, &bEnableDebugger); + } /* run the game */ (*CoreDoCommand)(M64CMD_EXECUTE, 0, NULL);