mirror of https://github.com/mgba-emu/mgba.git
Fix crashing when trying to start recording while recording
This commit is contained in:
parent
fabdfc86f3
commit
ff200093ca
|
@ -126,9 +126,11 @@ static void _GBASDLHandleKeypress(struct GBAThread* context, struct GBASDLEvents
|
|||
GBAThreadReset(context);
|
||||
GBAThreadInterrupt(context);
|
||||
GBARRContextCreate(context->gba);
|
||||
GBARRSetStream(context->gba->rr, context->stateDir);
|
||||
GBARRStopPlaying(context->gba->rr);
|
||||
GBARRStartRecording(context->gba->rr);
|
||||
if (!GBARRIsRecording(context->gba->rr)) {
|
||||
GBARRSetStream(context->gba->rr, context->stateDir);
|
||||
GBARRStopPlaying(context->gba->rr);
|
||||
GBARRStartRecording(context->gba->rr);
|
||||
}
|
||||
GBAThreadContinue(context);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue