mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Promote Input
This commit is contained in:
@@ -161,6 +161,12 @@ namespace SabreTools.Library.DatFiles
|
||||
[JsonIgnore]
|
||||
public long FeatureCount { get; private set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Number of Input items
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public long InputCount { get; private set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Number of Media items
|
||||
/// </summary>
|
||||
@@ -593,6 +599,9 @@ namespace SabreTools.Library.DatFiles
|
||||
case ItemType.Feature:
|
||||
FeatureCount++;
|
||||
break;
|
||||
case ItemType.Input:
|
||||
InputCount++;
|
||||
break;
|
||||
case ItemType.Media:
|
||||
MediaCount++;
|
||||
MD5Count += (string.IsNullOrWhiteSpace((item as Media).MD5) ? 0 : 1);
|
||||
@@ -767,6 +776,9 @@ namespace SabreTools.Library.DatFiles
|
||||
case ItemType.Feature:
|
||||
FeatureCount--;
|
||||
break;
|
||||
case ItemType.Input:
|
||||
InputCount--;
|
||||
break;
|
||||
case ItemType.Media:
|
||||
MediaCount--;
|
||||
MD5Count -= (string.IsNullOrWhiteSpace((item as Media).MD5) ? 0 : 1);
|
||||
|
||||
Reference in New Issue
Block a user