This commit is contained in:
alyosha-tas 2019-04-27 07:59:10 -04:00
parent 356039638a
commit d726a6476f
1 changed files with 12 additions and 1 deletions

View File

@ -862,7 +862,18 @@ namespace BizHawk.Client.EmuHawk
DialogResult result = prompt.ShowDialog();
if (result == DialogResult.OK)
{
int val = int.Parse(prompt.PromptText);
int val = 0;
try
{
val = int.Parse(prompt.PromptText);
}
catch
{
val = 100;
MessageBox.Show("Invalid Entry. Restoring Default.", "Input Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
if (val > 0)
{
CurrentTasMovie.ChangeLog.MaxSteps = val;