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);
|
GBAThreadReset(context);
|
||||||
GBAThreadInterrupt(context);
|
GBAThreadInterrupt(context);
|
||||||
GBARRContextCreate(context->gba);
|
GBARRContextCreate(context->gba);
|
||||||
|
if (!GBARRIsRecording(context->gba->rr)) {
|
||||||
GBARRSetStream(context->gba->rr, context->stateDir);
|
GBARRSetStream(context->gba->rr, context->stateDir);
|
||||||
GBARRStopPlaying(context->gba->rr);
|
GBARRStopPlaying(context->gba->rr);
|
||||||
GBARRStartRecording(context->gba->rr);
|
GBARRStartRecording(context->gba->rr);
|
||||||
|
}
|
||||||
GBAThreadContinue(context);
|
GBAThreadContinue(context);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue