Simplify item count statistics

This commit is contained in:
Matt Nadareski
2024-03-04 22:52:03 -05:00
parent b12d221fbf
commit d06205f186
6 changed files with 169 additions and 796 deletions

View File

@@ -237,12 +237,12 @@ body {
xtw.WriteStartElement("td");
xtw.WriteAttributeString("align", "right");
xtw.WriteString(stat.Statistics.RomCount.ToString());
xtw.WriteString(stat.Statistics.GetItemCount(Core.ItemType.Rom).ToString());
xtw.WriteEndElement(); // td
xtw.WriteStartElement("td");
xtw.WriteAttributeString("align", "right");
xtw.WriteString(stat.Statistics.DiskCount.ToString());
xtw.WriteString(stat.Statistics.GetItemCount(Core.ItemType.Disk).ToString());
xtw.WriteEndElement(); // td
xtw.WriteStartElement("td");

View File

@@ -131,8 +131,8 @@ namespace SabreTools.Reports.Formats
stat.DisplayName!,
stat.Statistics!.TotalSize.ToString(),
stat.MachineCount.ToString(),
stat.Statistics.RomCount.ToString(),
stat.Statistics.DiskCount.ToString(),
stat.Statistics.GetItemCount(Core.ItemType.Rom).ToString(),
stat.Statistics.GetItemCount(Core.ItemType.Disk).ToString(),
stat.Statistics.CRCCount.ToString(),
stat.Statistics.MD5Count.ToString(),
stat.Statistics.SHA1Count.ToString(),

View File

@@ -93,8 +93,8 @@ namespace SabreTools.Reports.Formats
--------------------------------------------------
Uncompressed size: " + GetBytesReadable(stat.Statistics!.TotalSize) + @"
Games found: " + stat.MachineCount + @"
Roms found: " + stat.Statistics.RomCount + @"
Disks found: " + stat.Statistics.DiskCount + @"
Roms found: " + stat.Statistics.GetItemCount(Core.ItemType.Rom) + @"
Disks found: " + stat.Statistics.GetItemCount(Core.ItemType.Disk) + @"
Roms with CRC: " + stat.Statistics.CRCCount + @"
Roms with MD5: " + stat.Statistics.MD5Count + @"
Roms with SHA-1: " + stat.Statistics.SHA1Count + @"