all repos — mgba @ 00236136250bcdf0eb745a74401f13220053b501

mGBA Game Boy Advance Emulator

Clean up movie state when exiting
Jeffrey Pfau jeffrey@endrift.com
Tue, 29 Jul 2014 22:49:24 -0700
commit

00236136250bcdf0eb745a74401f13220053b501

parent

dbc6567317605cf03d9c400b97ee3e03a960e04f

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

jump to
M src/gba/gba-rr.csrc/gba/gba-rr.c

@@ -20,6 +20,13 @@ if (!gba->rr) {

return; } + if (GBARRIsPlaying(gba->rr)) { + GBARRStopPlaying(gba->rr); + } + if (GBARRIsRecording(gba->rr)) { + GBARRStopRecording(gba->rr); + } + free(gba->rr); gba->rr = 0; }