Ram Search - On start new search, make current & prev identical, clear previous search list, and undo list

This commit is contained in:
andres.delikat 2011-02-19 21:08:47 +00:00
parent 46972c346f
commit 3e22f03e32
1 changed files with 3 additions and 1 deletions

View File

@ -228,6 +228,8 @@ namespace BizHawk.MultiClient
private void StartNewSearch() private void StartNewSearch()
{ {
searchList.Clear();
undoList.Clear();
GetMemoryDomain(); GetMemoryDomain();
int startaddress = 0; int startaddress = 0;
if (Global.Emulator.SystemId == "PCE") if (Global.Emulator.SystemId == "PCE")
@ -236,7 +238,7 @@ namespace BizHawk.MultiClient
{ {
searchList.Add(new Watch()); searchList.Add(new Watch());
searchList[x].address = x + startaddress; searchList[x].address = x + startaddress;
searchList[x].value = Global.Emulator.MainMemory.PeekByte(x); searchList[x].prev = searchList[x].value = Global.Emulator.MainMemory.PeekByte(x);
} }
DisplaySearchList(); DisplaySearchList();
} }