Hex Editor - ctrl+p = poke address, better formatting of the address display in the poke address pop up

This commit is contained in:
andres.delikat 2011-09-13 00:35:40 +00:00
parent 08fcaede91
commit 49fb822bec
1 changed files with 3 additions and 1 deletions

View File

@ -462,7 +462,7 @@ namespace BizHawk.MultiClient
Global.Sound.StopSound(); Global.Sound.StopSound();
InputPrompt i = new InputPrompt(); InputPrompt i = new InputPrompt();
Global.Sound.StartSound(); Global.Sound.StartSound();
i.Text = "Poke " + String.Format("{0:X}", p); i.Text = "Poke 0x" + String.Format(NumDigitsStr, p);
i.SetMessage("Enter a hexadecimal value"); i.SetMessage("Enter a hexadecimal value");
i.ShowDialog(); i.ShowDialog();
@ -871,6 +871,8 @@ namespace BizHawk.MultiClient
{ {
if (e.Control && e.KeyCode == Keys.G) if (e.Control && e.KeyCode == Keys.G)
GoToSpecifiedAddress(); GoToSpecifiedAddress();
if (e.Control && e.KeyCode == Keys.P)
PokeAddress();
e.Handled = true; e.Handled = true;
return; return;
} }