Hex Editor + Ram Search - Stop sound on modal dialog calls

This commit is contained in:
andres.delikat 2011-09-12 23:21:39 +00:00
parent 368f201dbe
commit ffc28123b3
2 changed files with 9 additions and 0 deletions

View File

@ -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();

View File

@ -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]]);