all repos — mgba @ 95e4820743c9d170c1f3cd4e0d4c7c55dfc02063

mGBA Game Boy Advance Emulator

SDL: Remove RR functions
Jeffrey Pfau jeffrey@endrift.com
Thu, 05 Mar 2015 00:22:57 -0800
commit

95e4820743c9d170c1f3cd4e0d4c7c55dfc02063

parent

e810f1b9f061fa0e40235b249f2cf2342decb104

1 files changed, 0 insertions(+), 33 deletions(-)

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

@@ -140,14 +140,6 @@ GBAThreadInterrupt(context);

GBARewind(context, 10); GBAThreadContinue(context); return; - case SDLK_ESCAPE: - GBAThreadInterrupt(context); - if (context->gba->rr) { - GBARRStopPlaying(context->gba->rr); - GBARRStopRecording(context->gba->rr); - } - GBAThreadContinue(context); - return; default: if ((event->keysym.mod & GUI_MOD) && (event->keysym.mod & GUI_MOD) == event->keysym.mod) { switch (event->keysym.sym) {

@@ -168,31 +160,6 @@ GBAThreadUnpause(context);

break; case SDLK_r: GBAThreadReset(context); - break; - case SDLK_t: - if (context->stateDir) { - GBAThreadInterrupt(context); - GBARRContextCreate(context->gba); - if (!GBARRIsRecording(context->gba->rr)) { - GBARRStopPlaying(context->gba->rr); - GBARRInitStream(context->gba->rr, context->stateDir); - GBARRReinitStream(context->gba->rr, INIT_EX_NIHILO); - GBARRStartRecording(context->gba->rr); - GBARRSaveState(context->gba); - } - GBAThreadContinue(context); - } - break; - case SDLK_y: - if (context->stateDir) { - GBAThreadInterrupt(context); - GBARRContextCreate(context->gba); - GBARRStopRecording(context->gba->rr); - GBARRInitStream(context->gba->rr, context->stateDir); - GBARRStartPlaying(context->gba->rr, false); - GBARRLoadState(context->gba); - GBAThreadContinue(context); - } break; default: break;