From eeadb1bb9d7f742c348e83555404dc63155e43dc Mon Sep 17 00:00:00 2001 From: n-a-c-h <> Date: Sun, 20 Mar 2005 02:12:00 +0000 Subject: [PATCH] Fixed a bug with subtitle file not being closed when stop was pressed. Made SRAM automatically load with movies. --- zsnes/src/zmovie.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/zsnes/src/zmovie.c b/zsnes/src/zmovie.c index dd2bfc46..bd52bea4 100644 --- a/zsnes/src/zmovie.c +++ b/zsnes/src/zmovie.c @@ -1241,6 +1241,9 @@ void MovieSeekBehind() MessageOn = MsgCount; } +extern bool SRAMState; +bool PrevSRAMState; + void Replay() { if (zmv_replay()) @@ -1267,6 +1270,7 @@ void Replay() zmv_replay_finished(); MovieSub_Close(); + SRAMState = PrevSRAMState; } } @@ -1289,7 +1293,12 @@ void MovieStop() { switch (MovieProcessing) { - case 1: zmv_replay_finished(); break; + case 1: + zmv_replay_finished(); + MovieSub_Close(); + SRAMState = PrevSRAMState; + break; + case 2: zmv_record_finish(); if (!zmv_frames_recorded()) @@ -1316,6 +1325,9 @@ void MoviePlay() { unsigned char FileExt[4]; + PrevSRAMState = SRAMState; + SRAMState = true; + if (!MovieProcessing) { GUIQuit = 2;