From b115cb564d8a3058303ec9a91aaf9696b09071f5 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sun, 27 Jul 2014 18:22:53 -0700 Subject: [PATCH] Fix GBARR not starting in SDL port --- src/platform/sdl/sdl-events.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/sdl/sdl-events.c b/src/platform/sdl/sdl-events.c index 1da64660d..e8633c537 100644 --- a/src/platform/sdl/sdl-events.c +++ b/src/platform/sdl/sdl-events.c @@ -122,7 +122,7 @@ static void _GBASDLHandleKeypress(struct GBAThread* context, struct GBASDLEvents GBAThreadReset(context); break; case SDLK_t: - if (context->gba->rr) { + if (context->stateDir) { GBAThreadReset(context); GBAThreadInterrupt(context); GBARRContextCreate(context->gba); @@ -133,7 +133,7 @@ static void _GBASDLHandleKeypress(struct GBAThread* context, struct GBASDLEvents } break; case SDLK_y: - if (context->gba->rr) { + if (context->stateDir) { GBAThreadReset(context); GBAThreadInterrupt(context); GBARRContextCreate(context->gba);