diff --git a/BizHawk.MultiClient/tools/Watch/RamSearch.cs b/BizHawk.MultiClient/tools/Watch/RamSearch.cs index cee29f7748..4ea2d4290a 100644 --- a/BizHawk.MultiClient/tools/Watch/RamSearch.cs +++ b/BizHawk.MultiClient/tools/Watch/RamSearch.cs @@ -253,7 +253,11 @@ namespace BizHawk.MultiClient public void NewSearch() { - Searches = new RamSearchEngine(Settings); + var compareTo = Searches.CompareTo; + var compareVal = Searches.CompareValue; + var differentBy = Searches.DifferentBy; + + Searches = new RamSearchEngine(Settings, compareTo, compareVal, differentBy); Searches.Start(); if (Global.Config.RamSearchAlwaysExcludeRamWatch) { diff --git a/BizHawk.MultiClient/tools/Watch/RamSearchEngine.cs b/BizHawk.MultiClient/tools/Watch/RamSearchEngine.cs index dedf50f2b1..0407d36599 100644 --- a/BizHawk.MultiClient/tools/Watch/RamSearchEngine.cs +++ b/BizHawk.MultiClient/tools/Watch/RamSearchEngine.cs @@ -73,6 +73,14 @@ namespace BizHawk.MultiClient _settings.PreviousType = settings.PreviousType; } + public RamSearchEngine(Settings settings, Compare compareTo, long? compareValue, int? differentBy) + : this(settings) + { + _compareTo = compareTo; + _differentBy = differentBy; + _compareValue = compareValue; + } + #region API public void Start()