Fix build error in DBMan ext. tool

fixes e38726db5
This commit is contained in:
YoshiRulz 2021-11-16 12:45:55 +10:00
parent baea2a081b
commit 5587a4e56c
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 4 additions and 4 deletions

View File

@ -72,7 +72,7 @@ namespace BizHawk.DBManTool
using (var outf = new StreamWriter(fpOutfile))
{
Dictionary<uint, string> FoundHashes = new Dictionary<uint, string>();
Dictionary<string, string> FoundHashes = new();
object olock = new object();
var todo = FindExtensionsRecurse(indir, ".CUE");
@ -101,14 +101,14 @@ namespace BizHawk.DBManTool
{
var hasher = new DiscHasher(disc);
uint bizHashId = hasher.Calculate_PSX_BizIDHash();
var bizHashId = hasher.Calculate_PSX_BizIDHash();
uint redumpHash = hasher.Calculate_PSX_RedumpHash();
lock (olock)
{
progress++;
Console.WriteLine("{0}/{1} [{2:X8}] {3}", progress, todo.Count, bizHashId, Path.GetFileNameWithoutExtension(fiCue));
outf.WriteLine("bizhash:{0:X8} datahash:{1:X8} //{2}", bizHashId, redumpHash, name);
Console.WriteLine("{0}/{1} [{2}] {3}", progress, todo.Count, bizHashId, Path.GetFileNameWithoutExtension(fiCue));
outf.WriteLine("bizhash:{0} datahash:{1:X8} //{2}", bizHashId, redumpHash, name);
if (FoundHashes.ContainsKey(bizHashId))
{
Console.WriteLine("--> COLLISION WITH: {0}", FoundHashes[bizHashId]);