Hook up movie autoload

This commit is contained in:
andres.delikat 2011-05-21 22:37:15 +00:00
parent 1707211d40
commit 0d714aa6d1
2 changed files with 11 additions and 1 deletions

View File

@ -642,7 +642,7 @@ namespace BizHawk.MultiClient
var auto = new ToolStripMenuItem();
auto.Text = "&Autoload Most Recent";
auto.Click += (o, ev) => UpdateAutoLoadRecentRom();
auto.Click += (o, ev) => UpdateAutoLoadRecentMovie();
if (Global.Config.AutoLoadMostRecentMovie == true)
auto.Checked = true;
else

View File

@ -130,6 +130,16 @@ namespace BizHawk.MultiClient
else if (Global.Config.AutoLoadMostRecentRom && !Global.Config.RecentRoms.IsEmpty())
LoadRomFromRecent(Global.Config.RecentRoms.GetRecentFileByPosition(0));
if (Global.Config.AutoLoadMostRecentMovie && !Global.Config.RecentMovies.IsEmpty())
{
Movie m = new Movie(Global.Config.RecentMovies.GetRecentFileByPosition(0), MOVIEMODE.PLAY);
ReadOnly = true;
StartNewMovie(m, false);
InputLog.StopMovie();
UserMovie.StartPlayback();
//LoadMoviesFromRecent(Global.Config.RecentRoms.GetRecentFileByPosition(0));
}
if (cmdLoadState != null && Global.Game != null)
LoadState("QuickSave" + cmdLoadState);