From aabc34c6c96f56a13b94dc2534d0035e023ee0b5 Mon Sep 17 00:00:00 2001 From: "andres.delikat" Date: Sun, 20 Feb 2011 19:31:25 +0000 Subject: [PATCH] Ram Search - display values column based on Data Type menu selection --- BizHawk.MultiClient/tools/RamSearch.cs | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/BizHawk.MultiClient/tools/RamSearch.cs b/BizHawk.MultiClient/tools/RamSearch.cs index 6f7ca3a85c..47cc21fe98 100644 --- a/BizHawk.MultiClient/tools/RamSearch.cs +++ b/BizHawk.MultiClient/tools/RamSearch.cs @@ -333,9 +333,24 @@ namespace BizHawk.MultiClient private void SearchListView_QueryItemText(int index, int column, out string text) { text = ""; - if (column == 0) text = searchList[index].address.ToString("x"); - if (column == 1) text = searchList[index].value.ToString(); - if (column == 3) text = searchList[index].changecount.ToString(); + if (column == 0) + { + text = searchList[index].address.ToString("X"); + } + if (column == 1) + { + if (unsignedToolStripMenuItem.Checked) + text = searchList[index].value.ToString(); + else if (signedToolStripMenuItem.Checked) + text = ((sbyte)searchList[index].value).ToString(); + else if (hexadecimalToolStripMenuItem.Checked) + text = searchList[index].value.ToString("X"); + + } + if (column == 3) + { + text = searchList[index].changecount.ToString(); + } } private void SearchListView_QueryItemIndent(int index, out int itemIndent)