Add ControlType, fix a bunch of numerics

This commit is contained in:
Matt Nadareski
2020-09-06 23:00:13 -07:00
parent aa414bc3cd
commit 5d5520dbdd
16 changed files with 323 additions and 248 deletions

View File

@@ -466,7 +466,7 @@ namespace SabreTools.Library.DatFiles
{
// Prepare all internal variables
string releaseNumber = string.Empty, duplicateid;
long size = -1;
long? size = null;
List<Rom> datItems = new List<Rom>();
Machine machine = new Machine();
@@ -510,9 +510,7 @@ namespace SabreTools.Library.DatFiles
break;
case "romsize":
if (!Int64.TryParse(reader.ReadElementContentAsString(), out size))
size = -1;
size = Sanitizer.CleanLong(reader.ReadElementContentAsString());
break;
case "publisher":