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

This commit is contained in:
Richard Goedeken 2018-11-06 07:30:55 -08:00
parent cbbfeaad14
commit 859dda24f4

View file

@ -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);