diff --git a/BizHawk.Client.EmuHawk/MainForm.Events.cs b/BizHawk.Client.EmuHawk/MainForm.Events.cs index 74bf18852d..c478499acf 100644 --- a/BizHawk.Client.EmuHawk/MainForm.Events.cs +++ b/BizHawk.Client.EmuHawk/MainForm.Events.cs @@ -1863,12 +1863,12 @@ namespace BizHawk.Client.EmuHawk private void LoadLastRomContextMenuItem_Click(object sender, EventArgs e) { - LoadRomFromRecent(Global.Config.RecentRoms[0]); + LoadRomFromRecent(Global.Config.RecentRoms.MostRecent); } private void LoadLastMovieContextMenuItem_Click(object sender, EventArgs e) { - LoadMoviesFromRecent(Global.Config.RecentMovies[0]); + LoadMoviesFromRecent(Global.Config.RecentMovies.MostRecent); } private void BackupMovieContextMenuItem_Click(object sender, EventArgs e) @@ -2137,7 +2137,7 @@ namespace BizHawk.Client.EmuHawk return; } - var ext = Path.GetExtension(filePaths[0]) ?? String.Empty; + var ext = Path.GetExtension(filePaths[0]) ?? string.Empty; if (ext.ToUpper() == ".LUASES") { OpenLuaConsole(); diff --git a/BizHawk.Client.EmuHawk/MainForm.cs b/BizHawk.Client.EmuHawk/MainForm.cs index 8b0efe57f0..f4c226f9ac 100644 --- a/BizHawk.Client.EmuHawk/MainForm.cs +++ b/BizHawk.Client.EmuHawk/MainForm.cs @@ -234,7 +234,7 @@ namespace BizHawk.Client.EmuHawk } else if (Global.Config.RecentRoms.AutoLoad && !Global.Config.RecentRoms.Empty) { - LoadRomFromRecent(Global.Config.RecentRoms[0]); + LoadRomFromRecent(Global.Config.RecentRoms.MostRecent); } if (cmdMovie != null) @@ -266,7 +266,7 @@ namespace BizHawk.Client.EmuHawk } else { - StartNewMovie(new Movie(Global.Config.RecentMovies[0]), false); + StartNewMovie(new Movie(Global.Config.RecentMovies.MostRecent), false); } } @@ -2835,7 +2835,7 @@ namespace BizHawk.Client.EmuHawk // restarts the lua console if a different rom is loaded. // im not really a fan of how this is done.. - if (Global.Config.RecentRoms.Empty || Global.Config.RecentRoms[0] != loader.CanonicalFullPath) + if (Global.Config.RecentRoms.Empty || Global.Config.RecentRoms.MostRecent != loader.CanonicalFullPath) { GlobalWin.Tools.Restart(); } diff --git a/BizHawk.Client.EmuHawk/tools/ToolManager.cs b/BizHawk.Client.EmuHawk/tools/ToolManager.cs index 8ebc7151e9..594d5470cb 100644 --- a/BizHawk.Client.EmuHawk/tools/ToolManager.cs +++ b/BizHawk.Client.EmuHawk/tools/ToolManager.cs @@ -423,7 +423,7 @@ namespace BizHawk.Client.EmuHawk { if (!IsLoaded() && Global.Config.RecentWatches.AutoLoad && !Global.Config.RecentWatches.Empty) { - GlobalWin.Tools.RamWatch.LoadFileFromRecent(Global.Config.RecentWatches[0]); + GlobalWin.Tools.RamWatch.LoadFileFromRecent(Global.Config.RecentWatches.MostRecent); } if (loadDialog)