[DatFile] Fix stats output for game count

This commit is contained in:
Matt Nadareski
2017-03-29 11:19:48 -07:00
parent a2c5672bfd
commit 51392f8c93

View File

@@ -124,7 +124,7 @@ namespace SabreTools.Helper.Dats
string results = @"For '" + FileName + @"': string results = @"For '" + FileName + @"':
-------------------------------------------------- --------------------------------------------------
Uncompressed size: " + Style.GetBytesReadable(TotalSize) + @" Uncompressed size: " + Style.GetBytesReadable(TotalSize) + @"
Games found: " + (game == -1 ? Count : game) + @" Games found: " + (game == -1 ? Keys.Count() : game) + @"
Roms found: " + RomCount + @" Roms found: " + RomCount + @"
Disks found: " + DiskCount + @" Disks found: " + DiskCount + @"
Roms with CRC: " + CRCCount + @" Roms with CRC: " + CRCCount + @"
@@ -152,7 +152,7 @@ namespace SabreTools.Helper.Dats
line = @"'" + FileName + @"': line = @"'" + FileName + @"':
-------------------------------------------------- --------------------------------------------------
Uncompressed size: " + Style.GetBytesReadable(TotalSize) + @" Uncompressed size: " + Style.GetBytesReadable(TotalSize) + @"
Games found: " + (game == -1 ? Count : game) + @" Games found: " + (game == -1 ? Keys.Count() : game) + @"
Roms found: " + RomCount + @" Roms found: " + RomCount + @"
Disks found: " + DiskCount + @" Disks found: " + DiskCount + @"
Roms with CRC: " + CRCCount + @" Roms with CRC: " + CRCCount + @"
@@ -175,7 +175,7 @@ namespace SabreTools.Helper.Dats
{ {
line = "\"" + FileName + "\"," line = "\"" + FileName + "\","
+ "\"" + TotalSize + "\"," + "\"" + TotalSize + "\","
+ "\"" + (game == -1 ? Count : game) + "\"," + "\"" + (game == -1 ? Keys.Count() : game) + "\","
+ "\"" + RomCount + "\"," + "\"" + RomCount + "\","
+ "\"" + DiskCount + "\"," + "\"" + DiskCount + "\","
+ "\"" + CRCCount + "\"," + "\"" + CRCCount + "\","
@@ -203,7 +203,7 @@ namespace SabreTools.Helper.Dats
? " class=\"dir\"><td>" + HttpUtility.HtmlEncode(FileName.Remove(0, 5)) ? " class=\"dir\"><td>" + HttpUtility.HtmlEncode(FileName.Remove(0, 5))
: "><td>" + HttpUtility.HtmlEncode(FileName)) + "</td>" : "><td>" + HttpUtility.HtmlEncode(FileName)) + "</td>"
+ "<td align=\"right\">" + Style.GetBytesReadable(TotalSize) + "</td>" + "<td align=\"right\">" + Style.GetBytesReadable(TotalSize) + "</td>"
+ "<td align=\"right\">" + (game == -1 ? Count : game) + "</td>" + "<td align=\"right\">" + (game == -1 ? Keys.Count() : game) + "</td>"
+ "<td align=\"right\">" + RomCount + "</td>" + "<td align=\"right\">" + RomCount + "</td>"
+ "<td align=\"right\">" + DiskCount + "</td>" + "<td align=\"right\">" + DiskCount + "</td>"
+ "<td align=\"right\">" + CRCCount + "</td>" + "<td align=\"right\">" + CRCCount + "</td>"
@@ -227,7 +227,7 @@ namespace SabreTools.Helper.Dats
{ {
line = "\"" + FileName + "\"\t" line = "\"" + FileName + "\"\t"
+ "\"" + TotalSize + "\"\t" + "\"" + TotalSize + "\"\t"
+ "\"" + (game == -1 ? Count : game) + "\"\t" + "\"" + (game == -1 ? Keys.Count() : game) + "\"\t"
+ "\"" + RomCount + "\"\t" + "\"" + RomCount + "\"\t"
+ "\"" + DiskCount + "\"\t" + "\"" + DiskCount + "\"\t"
+ "\"" + CRCCount + "\"\t" + "\"" + CRCCount + "\"\t"