Catch OverflowException when parsing address (hex str), resolves #1549
This commit is contained in:
parent
ab020cfad2
commit
6f1d61420d
|
@ -933,7 +933,16 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
if (prompt.PromptText.IsHex())
|
||||
{
|
||||
var addr = int.Parse(prompt.PromptText, NumberStyles.HexNumber);
|
||||
int addr;
|
||||
try
|
||||
{
|
||||
addr = int.Parse(prompt.PromptText, NumberStyles.HexNumber);
|
||||
}
|
||||
catch (OverflowException e)
|
||||
{
|
||||
//TODO repeat dialog `prompt` / show error?
|
||||
return;
|
||||
}
|
||||
|
||||
for (int index = 0; index < _searches.Count; index++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue