Hex Editor + Ram Search - Stop sound on modal dialog calls
This commit is contained in:
parent
368f201dbe
commit
ffc28123b3
|
@ -450,11 +450,18 @@ namespace BizHawk.MultiClient
|
||||||
}
|
}
|
||||||
|
|
||||||
private void pokeToolStripMenuItem_Click(object sender, EventArgs e)
|
private void pokeToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
PokeAddress();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void PokeAddress()
|
||||||
{
|
{
|
||||||
int p = GetHighlightedAddress();
|
int p = GetHighlightedAddress();
|
||||||
if (p >= 0)
|
if (p >= 0)
|
||||||
{
|
{
|
||||||
|
Global.Sound.StopSound();
|
||||||
InputPrompt i = new InputPrompt();
|
InputPrompt i = new InputPrompt();
|
||||||
|
Global.Sound.StartSound();
|
||||||
i.Text = "Poke " + String.Format("{0:X}", p);
|
i.Text = "Poke " + String.Format("{0:X}", p);
|
||||||
i.SetMessage("Enter a hexadecimal value");
|
i.SetMessage("Enter a hexadecimal value");
|
||||||
i.ShowDialog();
|
i.ShowDialog();
|
||||||
|
|
|
@ -465,7 +465,9 @@ namespace BizHawk.MultiClient
|
||||||
private void PokeAddress()
|
private void PokeAddress()
|
||||||
{
|
{
|
||||||
ListView.SelectedIndexCollection indexes = SearchListView.SelectedIndices;
|
ListView.SelectedIndexCollection indexes = SearchListView.SelectedIndices;
|
||||||
|
Global.Sound.StopSound();
|
||||||
RamPoke p = new RamPoke();
|
RamPoke p = new RamPoke();
|
||||||
|
Global.Sound.StartSound();
|
||||||
|
|
||||||
if (indexes.Count > 0)
|
if (indexes.Count > 0)
|
||||||
p.SetWatchObject(searchList[indexes[0]]);
|
p.SetWatchObject(searchList[indexes[0]]);
|
||||||
|
|
Loading…
Reference in New Issue