Ram search - reduce some unnecessary recreating of the entire ram search list during load. Also remove some Reboot() logic that happens right before a NewSearch that immediately negates it

This commit is contained in:
adelikat 2020-05-07 17:51:40 -05:00
parent 1c51d5b012
commit 3ae16c4248
1 changed files with 3 additions and 3 deletions

View File

@ -302,8 +302,9 @@ namespace BizHawk.Client.EmuHawk
_searches = new RamSearchEngine(_settings, MemoryDomains); _searches = new RamSearchEngine(_settings, MemoryDomains);
MessageLabel.Text = "Search restarted"; MessageLabel.Text = "Search restarted";
DoDomainSizeCheck(); DoDomainSizeCheck();
NewSearch(); _dropdownDontfire = true;
SetSize(_settings.Size); SetSize(_settings.Size); // Calls NewSearch() automatically
_dropdownDontfire = false;
HardSetDisplayTypeDropDown(_settings.Type); HardSetDisplayTypeDropDown(_settings.Type);
} }
@ -680,7 +681,6 @@ namespace BizHawk.Client.EmuHawk
PopulateTypeDropDown(); PopulateTypeDropDown();
_dropdownDontfire = false; _dropdownDontfire = false;
SpecificValueBox.Type = _settings.Type; SpecificValueBox.Type = _settings.Type;
SetReboot(true);
NewSearch(); NewSearch();
} }