Use the RecentRom.MostRecent property more, instead of index 0

This commit is contained in:
adelikat 2014-04-06 20:46:23 +00:00
parent eac51f7c66
commit 11f055a1e7
3 changed files with 7 additions and 7 deletions

View File

@ -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();

View File

@ -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<LuaConsole>();
}

View File

@ -423,7 +423,7 @@ namespace BizHawk.Client.EmuHawk
{
if (!IsLoaded<RamWatch>() && 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)