Ram Search - fix losing some settings when starting a new search
This commit is contained in:
parent
eda191007d
commit
ed637998fb
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue