a fix to restarting a movie, I broke this in recent commits

This commit is contained in:
adelikat 2014-10-25 23:11:55 +00:00
parent 170bc4aab0
commit 5adedbee8c
1 changed files with 6 additions and 1 deletions

View File

@ -15,6 +15,11 @@ namespace BizHawk.Client.EmuHawk
{
public bool StartNewMovie(IMovie movie, bool record)
{
if (movie.IsActive)
{
movie.Save();
}
try
{
Global.MovieSession.QueueNewMovie(movie, record);
@ -82,7 +87,7 @@ namespace BizHawk.Client.EmuHawk
{
if (Global.MovieSession.Movie.IsActive)
{
GlobalWin.MainForm.StartNewMovie(Global.MovieSession.Movie, true);
GlobalWin.MainForm.StartNewMovie(Global.MovieSession.Movie, false);
GlobalWin.OSD.AddMessage("Replaying movie file in read-only mode");
}
}