Ram Search - start new search list works
This commit is contained in:
parent
d4bf84ed2c
commit
28d01b57ef
BizHawk.MultiClient/tools
|
@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue