mirror of https://github.com/mgba-emu/mgba.git
SDL: Remove code for entering RR modes
This commit is contained in:
parent
9299b75be5
commit
35412145fc
|
@ -167,31 +167,6 @@ static void _GBASDLHandleKeypress(struct GBAThread* context, struct GBASDLEvents
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue