From 0d2e80b62591110b460f4a351250194907514a03 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sun, 12 Jul 2015 14:08:55 -0500 Subject: [PATCH] take a stab at re-adding the purported "add ability to resume disc hashing when interrupted" half of which was lost during a merge --- BizHawk.Client.DBMan/DiscHash.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/BizHawk.Client.DBMan/DiscHash.cs b/BizHawk.Client.DBMan/DiscHash.cs index 4030af718f..ab3c55da48 100644 --- a/BizHawk.Client.DBMan/DiscHash.cs +++ b/BizHawk.Client.DBMan/DiscHash.cs @@ -59,6 +59,14 @@ namespace BizHawk.Client.DBMan fpOutfile = args[i++]; } + var done = new HashSet(); + foreach (var line in File.ReadAllLines(fpOutfile)) + { + if (line.Trim() == "") continue; + var parts = line.Split(new[] { "//" }, StringSplitOptions.None); + done.Add(parts[1]); + } + using (var outf = new StreamWriter(fpOutfile)) {