diff --git a/BizHawk.MultiClient/tools/RamSearch.cs b/BizHawk.MultiClient/tools/RamSearch.cs index 9a486b186a..630c55e0b7 100644 --- a/BizHawk.MultiClient/tools/RamSearch.cs +++ b/BizHawk.MultiClient/tools/RamSearch.cs @@ -249,6 +249,8 @@ namespace BizHawk.MultiClient ListViewItem item = new ListViewItem(String.Format("{0:X}", searchList[x].address)); //TODO: if asigned.HeX, switch based on searchList.type item.SubItems.Add(string.Format("{0:X2}", searchList[x].value)); + item.SubItems.Add(string.Format("{0:X2}", searchList[x].value)); //TODO: implement prev + item.SubItems.Add(searchList[x].changecount.ToString()); SearchListView.Items.Add(item); } SetTotal(); diff --git a/BizHawk.MultiClient/tools/RamWatch.cs b/BizHawk.MultiClient/tools/RamWatch.cs index 706bdc76fb..f31258f1b1 100644 --- a/BizHawk.MultiClient/tools/RamWatch.cs +++ b/BizHawk.MultiClient/tools/RamWatch.cs @@ -24,6 +24,10 @@ namespace BizHawk.MultiClient //When Watch object has a changes member, display in watch list with a reset changes function //Ability to watch in different memory domains + //IDEAS: + //show a change count column? + //Take advantage of the prev member to show amount changes from prev in a column? + int defaultWidth; //For saving the default size of the dialog, so the user can restore if desired int defaultHeight; List watchList = new List(); diff --git a/BizHawk.MultiClient/tools/Watch.cs b/BizHawk.MultiClient/tools/Watch.cs index 60f08ba544..c2667d0d1e 100644 --- a/BizHawk.MultiClient/tools/Watch.cs +++ b/BizHawk.MultiClient/tools/Watch.cs @@ -21,6 +21,8 @@ namespace BizHawk.MultiClient signed = asigned.UNSIGNED; bigendian = true; notes = ""; + changecount = 0; + prev = 0; } public Watch(int Address, int Value, atype Type, asigned Signed, bool BigEndian, string Notes) { @@ -30,13 +32,18 @@ namespace BizHawk.MultiClient signed = Signed; bigendian = BigEndian; notes = Notes; + changecount = 0; + prev = 0; } - public int address { get; set; } + public int address { get; set; } public int value { get; set; } //Current value + public int prev { get; set; } public atype type { get; set; } //Address type (byte, word, dword, etc public asigned signed { get; set; } //Signed/Unsigned? public bool bigendian { get; set; } public string notes { get; set; } //User notes + public int changecount { get; set; } + public bool SetTypeByChar(char c) //b = byte, w = word, d = dword {