From 9b37a6c79fb9b7be1e7aea7c148309ebc77699c9 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sat, 28 Sep 2013 20:32:19 +0000 Subject: [PATCH] Fix IsValidDecimalNumber(), it wasn't allowing dash or period --- BizHawk.Util/InputValidate.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/BizHawk.Util/InputValidate.cs b/BizHawk.Util/InputValidate.cs index 071c436a5c..01bd3613fa 100644 --- a/BizHawk.Util/InputValidate.cs +++ b/BizHawk.Util/InputValidate.cs @@ -259,8 +259,14 @@ namespace BizHawk public static bool IsValidDecimalNumber(char c) { - if (c < 48 || c > 58) //45 = dash, 46 = dot + if (c == 45 || c == 46) //45 = dash, 46 = dot + { + return true; + } + else if (c < 48 || c > 58) + { return false; + } return true; }