Ram Search - On start new search, make current & prev identical, clear previous search list, and undo list
This commit is contained in:
parent
46972c346f
commit
3e22f03e32
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue