From ffc28123b37232a6cc76039da0cedcbe2f22099c Mon Sep 17 00:00:00 2001 From: "andres.delikat" Date: Mon, 12 Sep 2011 23:21:39 +0000 Subject: [PATCH] Hex Editor + Ram Search - Stop sound on modal dialog calls --- BizHawk.MultiClient/tools/HexEditor.cs | 7 +++++++ BizHawk.MultiClient/tools/RamSearch.cs | 2 ++ 2 files changed, 9 insertions(+) diff --git a/BizHawk.MultiClient/tools/HexEditor.cs b/BizHawk.MultiClient/tools/HexEditor.cs index a926a9e5f4..c99d104acd 100644 --- a/BizHawk.MultiClient/tools/HexEditor.cs +++ b/BizHawk.MultiClient/tools/HexEditor.cs @@ -450,11 +450,18 @@ namespace BizHawk.MultiClient } private void pokeToolStripMenuItem_Click(object sender, EventArgs e) + { + PokeAddress(); + } + + private void PokeAddress() { int p = GetHighlightedAddress(); if (p >= 0) { + Global.Sound.StopSound(); InputPrompt i = new InputPrompt(); + Global.Sound.StartSound(); i.Text = "Poke " + String.Format("{0:X}", p); i.SetMessage("Enter a hexadecimal value"); i.ShowDialog(); diff --git a/BizHawk.MultiClient/tools/RamSearch.cs b/BizHawk.MultiClient/tools/RamSearch.cs index d70407468a..269a6d578a 100644 --- a/BizHawk.MultiClient/tools/RamSearch.cs +++ b/BizHawk.MultiClient/tools/RamSearch.cs @@ -465,7 +465,9 @@ namespace BizHawk.MultiClient private void PokeAddress() { ListView.SelectedIndexCollection indexes = SearchListView.SelectedIndices; + Global.Sound.StopSound(); RamPoke p = new RamPoke(); + Global.Sound.StartSound(); if (indexes.Count > 0) p.SetWatchObject(searchList[indexes[0]]);