mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Promote DataArea, DiskArea, and Part
This commit is contained in:
@@ -119,6 +119,12 @@ namespace SabreTools.Library.DatFiles
|
||||
[JsonIgnore]
|
||||
public long ConfigurationCount { get; private set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Number of DataArea items
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public long DataAreaCount { get; private set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Number of Device items
|
||||
/// </summary>
|
||||
@@ -143,6 +149,12 @@ namespace SabreTools.Library.DatFiles
|
||||
[JsonIgnore]
|
||||
public long DiskCount { get; private set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Number of DiskArea items
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public long DiskAreaCount { get; private set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Number of Display items
|
||||
/// </summary>
|
||||
@@ -179,6 +191,12 @@ namespace SabreTools.Library.DatFiles
|
||||
[JsonIgnore]
|
||||
public long MediaCount { get; private set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Number of Part items
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public long PartCount { get; private set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Number of PartFeature items
|
||||
/// </summary>
|
||||
@@ -586,6 +604,9 @@ namespace SabreTools.Library.DatFiles
|
||||
case ItemType.Configuration:
|
||||
ConfigurationCount++;
|
||||
break;
|
||||
case ItemType.DataArea:
|
||||
DataAreaCount++;
|
||||
break;
|
||||
case ItemType.Device:
|
||||
DeviceCount++;
|
||||
break;
|
||||
@@ -608,6 +629,9 @@ namespace SabreTools.Library.DatFiles
|
||||
NodumpCount += ((item as Disk).ItemStatus == ItemStatus.Nodump ? 1 : 0);
|
||||
VerifiedCount += ((item as Disk).ItemStatus == ItemStatus.Verified ? 1 : 0);
|
||||
break;
|
||||
case ItemType.DiskArea:
|
||||
DiskAreaCount++;
|
||||
break;
|
||||
case ItemType.Display:
|
||||
DisplayCount++;
|
||||
break;
|
||||
@@ -629,6 +653,9 @@ namespace SabreTools.Library.DatFiles
|
||||
SHA1Count += (string.IsNullOrWhiteSpace((item as Media).SHA1) ? 0 : 1);
|
||||
SHA256Count += (string.IsNullOrWhiteSpace((item as Media).SHA256) ? 0 : 1);
|
||||
break;
|
||||
case ItemType.Part:
|
||||
PartCount++;
|
||||
break;
|
||||
case ItemType.PartFeature:
|
||||
PartFeatureCount++;
|
||||
break;
|
||||
@@ -772,6 +799,9 @@ namespace SabreTools.Library.DatFiles
|
||||
case ItemType.Configuration:
|
||||
ConfigurationCount--;
|
||||
break;
|
||||
case ItemType.DataArea:
|
||||
DataAreaCount--;
|
||||
break;
|
||||
case ItemType.Device:
|
||||
DeviceCount--;
|
||||
break;
|
||||
@@ -794,6 +824,9 @@ namespace SabreTools.Library.DatFiles
|
||||
NodumpCount -= ((item as Disk).ItemStatus == ItemStatus.Nodump ? 1 : 0);
|
||||
VerifiedCount -= ((item as Disk).ItemStatus == ItemStatus.Verified ? 1 : 0);
|
||||
break;
|
||||
case ItemType.DiskArea:
|
||||
DiskAreaCount--;
|
||||
break;
|
||||
case ItemType.Display:
|
||||
DisplayCount--;
|
||||
break;
|
||||
@@ -815,6 +848,9 @@ namespace SabreTools.Library.DatFiles
|
||||
SHA1Count -= (string.IsNullOrWhiteSpace((item as Media).SHA1) ? 0 : 1);
|
||||
SHA256Count -= (string.IsNullOrWhiteSpace((item as Media).SHA256) ? 0 : 1);
|
||||
break;
|
||||
case ItemType.Part:
|
||||
PartCount--;
|
||||
break;
|
||||
case ItemType.PartFeature:
|
||||
PartFeatureCount--;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user