From 51392f8c93099b8f97bf8348234d06077ce9d6ac Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Wed, 29 Mar 2017 11:19:48 -0700 Subject: [PATCH] [DatFile] Fix stats output for game count --- SabreTools.Helper/Dats/Partials/DatFile.Statistics.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/SabreTools.Helper/Dats/Partials/DatFile.Statistics.cs b/SabreTools.Helper/Dats/Partials/DatFile.Statistics.cs index 141d9914..4e7a1993 100644 --- a/SabreTools.Helper/Dats/Partials/DatFile.Statistics.cs +++ b/SabreTools.Helper/Dats/Partials/DatFile.Statistics.cs @@ -124,7 +124,7 @@ namespace SabreTools.Helper.Dats string results = @"For '" + FileName + @"': -------------------------------------------------- Uncompressed size: " + Style.GetBytesReadable(TotalSize) + @" - Games found: " + (game == -1 ? Count : game) + @" + Games found: " + (game == -1 ? Keys.Count() : game) + @" Roms found: " + RomCount + @" Disks found: " + DiskCount + @" Roms with CRC: " + CRCCount + @" @@ -152,7 +152,7 @@ namespace SabreTools.Helper.Dats line = @"'" + FileName + @"': -------------------------------------------------- Uncompressed size: " + Style.GetBytesReadable(TotalSize) + @" - Games found: " + (game == -1 ? Count : game) + @" + Games found: " + (game == -1 ? Keys.Count() : game) + @" Roms found: " + RomCount + @" Disks found: " + DiskCount + @" Roms with CRC: " + CRCCount + @" @@ -175,7 +175,7 @@ namespace SabreTools.Helper.Dats { line = "\"" + FileName + "\"," + "\"" + TotalSize + "\"," - + "\"" + (game == -1 ? Count : game) + "\"," + + "\"" + (game == -1 ? Keys.Count() : game) + "\"," + "\"" + RomCount + "\"," + "\"" + DiskCount + "\"," + "\"" + CRCCount + "\"," @@ -203,7 +203,7 @@ namespace SabreTools.Helper.Dats ? " class=\"dir\">" + HttpUtility.HtmlEncode(FileName.Remove(0, 5)) : ">" + HttpUtility.HtmlEncode(FileName)) + "" + "" + Style.GetBytesReadable(TotalSize) + "" - + "" + (game == -1 ? Count : game) + "" + + "" + (game == -1 ? Keys.Count() : game) + "" + "" + RomCount + "" + "" + DiskCount + "" + "" + CRCCount + "" @@ -227,7 +227,7 @@ namespace SabreTools.Helper.Dats { line = "\"" + FileName + "\"\t" + "\"" + TotalSize + "\"\t" - + "\"" + (game == -1 ? Count : game) + "\"\t" + + "\"" + (game == -1 ? Keys.Count() : game) + "\"\t" + "\"" + RomCount + "\"\t" + "\"" + DiskCount + "\"\t" + "\"" + CRCCount + "\"\t"