Ram Watch - Load most recent watch when loading Ram Watch dialog (if auto-load is on)

This commit is contained in:
andres.delikat 2011-01-19 04:59:19 +00:00
parent 99d9ece5fd
commit 9d86fa0eb3
2 changed files with 3 additions and 1 deletions

View File

@ -784,6 +784,8 @@ namespace BizHawk.MultiClient
private void LoadRamWatch() //TODO: accept a filename parameter and feed it to ram watch for loading private void LoadRamWatch() //TODO: accept a filename parameter and feed it to ram watch for loading
{ {
RamWatch RamWatch1 = new RamWatch(); RamWatch RamWatch1 = new RamWatch();
if (Global.Config.AutoLoadRamWatch)
RamWatch1.LoadWatchFromRecent(Global.Config.RecentWatches.GetRecentFileByPosition(0));
RamWatch1.Show(); RamWatch1.Show();
} }

View File

@ -42,7 +42,7 @@ namespace BizHawk.MultiClient
return count; return count;
} }
private void LoadWatchFromRecent(string file) public void LoadWatchFromRecent(string file)
{ {
bool r = LoadWatchFile(file); bool r = LoadWatchFile(file);
if (!r) if (!r)