Debugger - Make Register Boxes use Hex input.

This commit is contained in:
scrimpey 2015-06-19 20:32:05 +00:00
parent 2da9650be5
commit 17ce177e5f
1 changed files with 8 additions and 1 deletions

View File

@ -178,12 +178,19 @@ namespace BizHawk.Client.EmuHawk
{ {
try try
{ {
Core.SetCpuRegister(t.Name, int.Parse(t.Text)); if (t.Text != String.Empty)
{
Core.SetCpuRegister(t.Name, int.Parse(t.Text, System.Globalization.NumberStyles.HexNumber));
}
} }
catch (InvalidOperationException) catch (InvalidOperationException)
{ {
t.Enabled = false; t.Enabled = false;
} }
catch (FormatException)
{
}
} }
}; };