all repos — mgba @ f2b031467f1a5b1d573e7e6a38cc9b154b1c3809

mGBA Game Boy Advance Emulator

Fix non-debugger build
Jeffrey Pfau jeffrey@endrift.com
Sun, 19 Jan 2014 01:24:29 -0800
commit

f2b031467f1a5b1d573e7e6a38cc9b154b1c3809

parent

7b682dd7c53af138c5b1420a1ae058ce6c26c4f2

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M src/platform/sdl/sdl-events.csrc/platform/sdl/sdl-events.c

@@ -51,11 +51,13 @@ break;

case SDLK_RIGHT: key = GBA_KEY_RIGHT; break; +#ifdef USE_DEBUGGER case SDLK_F11: - if (event->type == SDL_KEYDOWN) { + if (event->type == SDL_KEYDOWN && context->debugger) { ARMDebuggerEnter(context->debugger); } break; +#endif case SDLK_TAB: context->sync.audioWait = !context->sync.audioWait; return;