Corrected how movie dumping is handled in various circumstances.

This commit is contained in:
n-a-c-h
2005-11-22 23:16:21 +00:00
parent 2deba26206
commit f9dc41e1b5

View File

@@ -2145,6 +2145,11 @@ static void OldMovieReplay()
MessageOn = MovieSub_GetDuration(); MessageOn = MovieSub_GetDuration();
} }
if (RawDumpInProgress)
{
raw_video_write_frame();
}
old_movie.frames_replayed++; old_movie.frames_replayed++;
} }
else // anything else is bad - the file isn't a movie. else // anything else is bad - the file isn't a movie.
@@ -2171,6 +2176,12 @@ static void OldMovieReplay()
fclose(old_movie.fp); fclose(old_movie.fp);
MovieSub_Close(); MovieSub_Close();
if (RawDumpInProgress)
{
raw_video_close();
RawDumpInProgress = false;
}
} }
} }
@@ -2322,12 +2333,6 @@ void Replay()
if (zmv_frames_replayed()) if (zmv_frames_replayed())
{ {
Msgptr = "MOVIE FINISHED."; Msgptr = "MOVIE FINISHED.";
if (RawDumpInProgress)
{
raw_video_close();
RawDumpInProgress = false;
}
} }
else else
{ {
@@ -2339,6 +2344,13 @@ void Replay()
zmv_replay_finished(); zmv_replay_finished();
zmv_dealloc_rewind_buffer(); zmv_dealloc_rewind_buffer();
MovieSub_Close(); MovieSub_Close();
if (RawDumpInProgress)
{
raw_video_close();
RawDumpInProgress = false;
}
SRAMState = PrevSRAMState; SRAMState = PrevSRAMState;
} }
} }
@@ -2400,6 +2412,11 @@ void MovieStop()
case MOVIE_OLD_PLAY: case MOVIE_OLD_PLAY:
fclose(old_movie.fp); fclose(old_movie.fp);
MovieSub_Close(); MovieSub_Close();
if (RawDumpInProgress)
{
raw_video_close();
RawDumpInProgress = false;
}
MessageOn = 0; MessageOn = 0;
break; break;
} }