From 9d86fa0eb39fb72155b9838de4dd90436f23adc8 Mon Sep 17 00:00:00 2001 From: "andres.delikat" Date: Wed, 19 Jan 2011 04:59:19 +0000 Subject: [PATCH] Ram Watch - Load most recent watch when loading Ram Watch dialog (if auto-load is on) --- BizHawk.MultiClient/MainForm.cs | 2 ++ BizHawk.MultiClient/RamWatch.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/BizHawk.MultiClient/MainForm.cs b/BizHawk.MultiClient/MainForm.cs index c31ab9a384..d910a8139e 100644 --- a/BizHawk.MultiClient/MainForm.cs +++ b/BizHawk.MultiClient/MainForm.cs @@ -784,6 +784,8 @@ namespace BizHawk.MultiClient private void LoadRamWatch() //TODO: accept a filename parameter and feed it to ram watch for loading { RamWatch RamWatch1 = new RamWatch(); + if (Global.Config.AutoLoadRamWatch) + RamWatch1.LoadWatchFromRecent(Global.Config.RecentWatches.GetRecentFileByPosition(0)); RamWatch1.Show(); } diff --git a/BizHawk.MultiClient/RamWatch.cs b/BizHawk.MultiClient/RamWatch.cs index 5e3518e479..1cf9cc7220 100644 --- a/BizHawk.MultiClient/RamWatch.cs +++ b/BizHawk.MultiClient/RamWatch.cs @@ -42,7 +42,7 @@ namespace BizHawk.MultiClient return count; } - private void LoadWatchFromRecent(string file) + public void LoadWatchFromRecent(string file) { bool r = LoadWatchFile(file); if (!r)