diff --git a/BizHawk.MultiClient/MainForm.cs b/BizHawk.MultiClient/MainForm.cs index faa8202244..18198d5b96 100644 --- a/BizHawk.MultiClient/MainForm.cs +++ b/BizHawk.MultiClient/MainForm.cs @@ -379,6 +379,7 @@ namespace BizHawk.MultiClient { Global.Emulator.FrameAdvance(true); //TODO: Do these things need to happen on (false) as well? Think about it RamWatch1.UpdateValues(); + RamSearch1.UpdateValues(); } public void GameTick() diff --git a/BizHawk.MultiClient/tools/RamSearch.cs b/BizHawk.MultiClient/tools/RamSearch.cs index 15dc9fbc66..ccf0b20cc0 100644 --- a/BizHawk.MultiClient/tools/RamSearch.cs +++ b/BizHawk.MultiClient/tools/RamSearch.cs @@ -20,8 +20,6 @@ namespace BizHawk.MultiClient //Reset window position item int defaultWidth; //For saving the default size of the dialog, so the user can restore if desired int defaultHeight; - - int hackyPCEStartAddress = 0x1F0000; List searchList = new List(); @@ -30,6 +28,17 @@ namespace BizHawk.MultiClient InitializeComponent(); } + public void UpdateValues() + { + //TODO: update based on atype + for (int x = 0; x < searchList.Count; x++) + { + searchList[x].value = Global.Emulator.MainMemory.PeekByte(searchList[x].address); + //TODO: format based on asigned + SearchListView.Items[x].SubItems[1].Text = searchList[x].value.ToString(); + } + } + private void RamSearch_Load(object sender, EventArgs e) { defaultWidth = this.Size.Width; //Save these first so that the user can restore to its original size