Ram Search - start new search list works

This commit is contained in:
andres.delikat 2011-02-19 01:47:45 +00:00
parent d4bf84ed2c
commit 28d01b57ef
2 changed files with 8 additions and 1 deletions
BizHawk.MultiClient/tools

View File

@ -21,6 +21,8 @@ namespace BizHawk.MultiClient
int defaultWidth; //For saving the default size of the dialog, so the user can restore if desired
int defaultHeight;
int hackyPCEStartAddress = 0x1F0000;
List<Watch> searchList = new List<Watch>();
public RamSearch()
@ -203,9 +205,13 @@ namespace BizHawk.MultiClient
private void StartNewSearch()
{
int startaddress = 0;
if (Global.Emulator.SystemId == "PCE")
startaddress = 0x1F0000; //For now, until Emulator core functionality can better handle a prefix
for (int x = 0; x < Global.Emulator.MainMemory.Size; x++)
{
searchList.Add(new Watch());
searchList[x].address = x + startaddress;
searchList[x].value = Global.Emulator.MainMemory.PeekByte(x);
}
DisplaySearchList();
@ -226,7 +232,6 @@ namespace BizHawk.MultiClient
private void newSearchToolStripMenuItem_Click(object sender, EventArgs e)
{
StartNewSearch();
}
}
}

View File

@ -21,6 +21,8 @@ namespace BizHawk.MultiClient
//DWORD display
//On Movie UP/Down set highlighted items to be what the user had selected (in their new position)
//DisplayWatches needs to do value display properly like updatevalues, or just run update values
//When Watch object has a changes member, display in watch list with a reset changes function
//Ability to watch in different memory domains
int defaultWidth; //For saving the default size of the dialog, so the user can restore if desired
int defaultHeight;