mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Move DatItems enums back to proper project
This commit is contained in:
@@ -4,6 +4,7 @@ using System.IO;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Xml;
|
||||
using SabreTools.DatItems;
|
||||
using SabreTools.Hashing;
|
||||
using SabreTools.Logging;
|
||||
|
||||
@@ -237,12 +238,12 @@ body {
|
||||
|
||||
xtw.WriteStartElement("td");
|
||||
xtw.WriteAttributeString("align", "right");
|
||||
xtw.WriteString(stat.Statistics.GetItemCount(Core.ItemType.Rom).ToString());
|
||||
xtw.WriteString(stat.Statistics.GetItemCount(ItemType.Rom).ToString());
|
||||
xtw.WriteEndElement(); // td
|
||||
|
||||
xtw.WriteStartElement("td");
|
||||
xtw.WriteAttributeString("align", "right");
|
||||
xtw.WriteString(stat.Statistics.GetItemCount(Core.ItemType.Disk).ToString());
|
||||
xtw.WriteString(stat.Statistics.GetItemCount(ItemType.Disk).ToString());
|
||||
xtw.WriteEndElement(); // td
|
||||
|
||||
xtw.WriteStartElement("td");
|
||||
@@ -269,7 +270,7 @@ body {
|
||||
{
|
||||
xtw.WriteStartElement("td");
|
||||
xtw.WriteAttributeString("align", "right");
|
||||
xtw.WriteString(stat.Statistics.GetStatusCount(Core.ItemStatus.BadDump).ToString());
|
||||
xtw.WriteString(stat.Statistics.GetStatusCount(ItemStatus.BadDump).ToString());
|
||||
xtw.WriteEndElement(); // td
|
||||
}
|
||||
|
||||
@@ -277,7 +278,7 @@ body {
|
||||
{
|
||||
xtw.WriteStartElement("td");
|
||||
xtw.WriteAttributeString("align", "right");
|
||||
xtw.WriteString(stat.Statistics.GetStatusCount(Core.ItemStatus.Nodump).ToString());
|
||||
xtw.WriteString(stat.Statistics.GetStatusCount(ItemStatus.Nodump).ToString());
|
||||
xtw.WriteEndElement(); // td
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using SabreTools.DatItems;
|
||||
using SabreTools.Hashing;
|
||||
using SabreTools.IO.Writers;
|
||||
using SabreTools.Logging;
|
||||
@@ -131,16 +132,16 @@ namespace SabreTools.Reports.Formats
|
||||
stat.DisplayName!,
|
||||
stat.Statistics!.TotalSize.ToString(),
|
||||
stat.MachineCount.ToString(),
|
||||
stat.Statistics.GetItemCount(Core.ItemType.Rom).ToString(),
|
||||
stat.Statistics.GetItemCount(Core.ItemType.Disk).ToString(),
|
||||
stat.Statistics.GetItemCount(ItemType.Rom).ToString(),
|
||||
stat.Statistics.GetItemCount(ItemType.Disk).ToString(),
|
||||
stat.Statistics.GetHashCount(HashType.CRC32).ToString(),
|
||||
stat.Statistics.GetHashCount(HashType.MD5).ToString(),
|
||||
stat.Statistics.GetHashCount(HashType.SHA1).ToString(),
|
||||
stat.Statistics.GetHashCount(HashType.SHA256).ToString(),
|
||||
stat.Statistics.GetHashCount(HashType.SHA384).ToString(),
|
||||
stat.Statistics.GetHashCount(HashType.SHA512).ToString(),
|
||||
baddumpCol ? stat.Statistics.GetStatusCount(Core.ItemStatus.BadDump).ToString() : string.Empty,
|
||||
nodumpCol ? stat.Statistics.GetStatusCount(Core.ItemStatus.Nodump).ToString() : string.Empty,
|
||||
baddumpCol ? stat.Statistics.GetStatusCount(ItemStatus.BadDump).ToString() : string.Empty,
|
||||
nodumpCol ? stat.Statistics.GetStatusCount(ItemStatus.Nodump).ToString() : string.Empty,
|
||||
];
|
||||
svw.WriteValues(values);
|
||||
svw.Flush();
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using SabreTools.DatItems;
|
||||
using SabreTools.Hashing;
|
||||
using SabreTools.Logging;
|
||||
|
||||
@@ -93,8 +94,8 @@ namespace SabreTools.Reports.Formats
|
||||
--------------------------------------------------
|
||||
Uncompressed size: " + GetBytesReadable(stat.Statistics!.TotalSize) + @"
|
||||
Games found: " + stat.MachineCount + @"
|
||||
Roms found: " + stat.Statistics.GetItemCount(Core.ItemType.Rom) + @"
|
||||
Disks found: " + stat.Statistics.GetItemCount(Core.ItemType.Disk) + @"
|
||||
Roms found: " + stat.Statistics.GetItemCount(ItemType.Rom) + @"
|
||||
Disks found: " + stat.Statistics.GetItemCount(ItemType.Disk) + @"
|
||||
Roms with CRC: " + stat.Statistics.GetHashCount(HashType.CRC32) + @"
|
||||
Roms with MD5: " + stat.Statistics.GetHashCount(HashType.MD5) + @"
|
||||
Roms with SHA-1: " + stat.Statistics.GetHashCount(HashType.SHA1) + @"
|
||||
@@ -103,10 +104,10 @@ namespace SabreTools.Reports.Formats
|
||||
Roms with SHA-512: " + stat.Statistics.GetHashCount(HashType.SHA512) + "\n";
|
||||
|
||||
if (baddumpCol)
|
||||
line += " Roms with BadDump status: " + stat.Statistics.GetStatusCount(Core.ItemStatus.BadDump) + "\n";
|
||||
line += " Roms with BadDump status: " + stat.Statistics.GetStatusCount(ItemStatus.BadDump) + "\n";
|
||||
|
||||
if (nodumpCol)
|
||||
line += " Roms with Nodump status: " + stat.Statistics.GetStatusCount(Core.ItemStatus.Nodump) + "\n";
|
||||
line += " Roms with Nodump status: " + stat.Statistics.GetStatusCount(ItemStatus.Nodump) + "\n";
|
||||
|
||||
// For spacing between DATs
|
||||
line += "\n\n";
|
||||
|
||||
Reference in New Issue
Block a user