Found a case of size being dash

This commit is contained in:
Matt Nadareski
2016-04-21 00:14:11 -07:00
parent b9b4284c43
commit d9e298373c
3 changed files with 4 additions and 4 deletions

View File

@@ -86,7 +86,7 @@ namespace SabreTools
logger.Start(); logger.Start();
// Output the title // Output the title
Build.Start("DiffDat"); Build.Start("MergeDAT");
List<String> inputs = new List<String>(); List<String> inputs = new List<String>();
bool help = false, dedup = false, diff = false, forceunpack = false, old = false, log = false, noDate = false; bool help = false, dedup = false, diff = false, forceunpack = false, old = false, log = false, noDate = false;

View File

@@ -162,7 +162,7 @@ Options:
case "MergeDAT": case "MergeDAT":
Console.WriteLine(@"MergeDAT - Merge two or more DATs Console.WriteLine(@"MergeDAT - Merge two or more DATs
----------------------------------------- -----------------------------------------
Usage: MergeDAT [options] [filename] ... Usage: MergeDAT [options] [filename|dirname] <filename|dirname> ...
Options: Options:
-h, -?, --help Show this help dialog -h, -?, --help Show this help dialog

View File

@@ -203,7 +203,7 @@ namespace SabreTools.Helper
} }
else if (child.Attributes["size"] != null) else if (child.Attributes["size"] != null)
{ {
size = Int64.Parse(child.Attributes["size"].Value); Int64.TryParse(child.Attributes["size"].Value, out size);
} }
roms.Add(new RomData roms.Add(new RomData
@@ -240,7 +240,7 @@ namespace SabreTools.Helper
} }
else if (data.Attributes["size"] != null) else if (data.Attributes["size"] != null)
{ {
size = Int64.Parse(data.Attributes["size"].Value); Int64.TryParse(data.Attributes["size"].Value, out size);
} }
roms.Add(new RomData roms.Add(new RomData