mirror of https://github.com/mgba-emu/mgba.git
SDL: Fix crash when not in debugger mode
This commit is contained in:
parent
531d4c7bae
commit
5d0ab48457
|
@ -184,10 +184,10 @@ int mSDLRun(struct mSDLRenderer* renderer, struct mArguments* args) {
|
||||||
#endif
|
#endif
|
||||||
mDebuggerAttach(debugger, renderer->core);
|
mDebuggerAttach(debugger, renderer->core);
|
||||||
mDebuggerEnter(debugger, DEBUGGER_ENTER_MANUAL, NULL);
|
mDebuggerEnter(debugger, DEBUGGER_ENTER_MANUAL, NULL);
|
||||||
}
|
#ifdef ENABLE_SCRIPTING
|
||||||
#ifdef ENABLE_SCRIPTING
|
mScriptBridgeSetDebugger(bridge, debugger);
|
||||||
mScriptBridgeSetDebugger(bridge, debugger);
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (args->patch) {
|
if (args->patch) {
|
||||||
|
|
Loading…
Reference in New Issue