Ram Search - fix losing some settings when starting a new search

This commit is contained in:
adelikat 2013-10-12 02:06:53 +00:00
parent eda191007d
commit ed637998fb
2 changed files with 13 additions and 1 deletions

View File

@ -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)
{

View File

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