[DatFile] Fix stats alignment?

This commit is contained in:
Matt Nadareski
2017-03-18 21:44:48 -07:00
parent bfd991ded0
commit 5ecc110ce0

View File

@@ -21,7 +21,6 @@ namespace SabreTools.Helper.Dats
/* /*
* TODO: Make output standard width (HTML, without making the entire thing a table) * TODO: Make output standard width (HTML, without making the entire thing a table)
* TODO: Multithreading? Either StringBuilder or locking * TODO: Multithreading? Either StringBuilder or locking
* TODO: Fix alignment for stats output (text)
*/ */
public partial class DatFile public partial class DatFile
{ {
@@ -131,7 +130,9 @@ namespace SabreTools.Helper.Dats
Roms with CRC: " + CRCCount + @" Roms with CRC: " + CRCCount + @"
Roms with MD5: " + MD5Count + @" Roms with MD5: " + MD5Count + @"
Roms with SHA-1: " + SHA1Count + @" Roms with SHA-1: " + SHA1Count + @"
Roms with SHA-256: " + SHA256Count + "\n"; Roms with SHA-256: " + SHA256Count + @"
Roms with SHA-384: " + SHA384Count + @"
Roms with SHA-512: " + SHA512Count + "\n";
if (baddumpCol) if (baddumpCol)
{ {
@@ -156,7 +157,9 @@ namespace SabreTools.Helper.Dats
Disks found: " + DiskCount + @" Disks found: " + DiskCount + @"
Roms with CRC: " + CRCCount + @" Roms with CRC: " + CRCCount + @"
Roms with SHA-1: " + SHA1Count + @" Roms with SHA-1: " + SHA1Count + @"
Roms with SHA-256: " + SHA256Count + "\n"; Roms with SHA-256: " + SHA256Count + @"
Roms with SHA-384: " + SHA384Count + @"
Roms with SHA-512: " + SHA512Count + "\n";
if (baddumpCol) if (baddumpCol)
{ {
@@ -171,14 +174,16 @@ namespace SabreTools.Helper.Dats
if (outputs.ContainsKey(StatDatFormat.CSV)) if (outputs.ContainsKey(StatDatFormat.CSV))
{ {
line = "\"" + FileName + "\"," line = "\"" + FileName + "\","
+ "\"" + TotalSize + "\"," + "\"" + TotalSize + "\","
+ "\"" + (game == -1 ? Count : game) + "\"," + "\"" + (game == -1 ? Count : game) + "\","
+ "\"" + RomCount + "\"," + "\"" + RomCount + "\","
+ "\"" + DiskCount + "\"," + "\"" + DiskCount + "\","
+ "\"" + CRCCount + "\"," + "\"" + CRCCount + "\","
+ "\"" + MD5Count + "\"," + "\"" + MD5Count + "\","
+ "\"" + SHA1Count + "\"," + "\"" + SHA1Count + "\","
+ "\"" + SHA256Count + "\""; + "\"" + SHA256Count + "\","
+ "\"" + SHA384Count + "\","
+ "\"" + SHA512Count + "\"";
if (baddumpCol) if (baddumpCol)
{ {
@@ -228,7 +233,9 @@ namespace SabreTools.Helper.Dats
+ "\"" + CRCCount + "\"\t" + "\"" + CRCCount + "\"\t"
+ "\"" + MD5Count + "\"\t" + "\"" + MD5Count + "\"\t"
+ "\"" + SHA1Count + "\"\t" + "\"" + SHA1Count + "\"\t"
+ "\"" + SHA256Count + "\""; + "\"" + SHA256Count + "\"\t"
+ "\"" + SHA384Count + "\"\t"
+ "\"" + SHA512Count + "\"";
if (baddumpCol) if (baddumpCol)
{ {