mirror of
https://github.com/libretro/mgba.git
synced 2024-12-01 04:00:32 +00:00
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
Block a user