Fixed a bug with subtitle file not being closed when stop was pressed. Made SRAM automatically load with movies.

This commit is contained in:
n-a-c-h
2005-03-20 02:12:00 +00:00
parent 2741ca2bae
commit eeadb1bb9d

View File

@@ -1241,6 +1241,9 @@ void MovieSeekBehind()
MessageOn = MsgCount; MessageOn = MsgCount;
} }
extern bool SRAMState;
bool PrevSRAMState;
void Replay() void Replay()
{ {
if (zmv_replay()) if (zmv_replay())
@@ -1267,6 +1270,7 @@ void Replay()
zmv_replay_finished(); zmv_replay_finished();
MovieSub_Close(); MovieSub_Close();
SRAMState = PrevSRAMState;
} }
} }
@@ -1289,7 +1293,12 @@ void MovieStop()
{ {
switch (MovieProcessing) switch (MovieProcessing)
{ {
case 1: zmv_replay_finished(); break; case 1:
zmv_replay_finished();
MovieSub_Close();
SRAMState = PrevSRAMState;
break;
case 2: case 2:
zmv_record_finish(); zmv_record_finish();
if (!zmv_frames_recorded()) if (!zmv_frames_recorded())
@@ -1316,6 +1325,9 @@ void MoviePlay()
{ {
unsigned char FileExt[4]; unsigned char FileExt[4];
PrevSRAMState = SRAMState;
SRAMState = true;
if (!MovieProcessing) if (!MovieProcessing)
{ {
GUIQuit = 2; GUIQuit = 2;