[DatFile, DatStats] Stats update; slight renaming

This commit is contained in:
Matt Nadareski
2017-10-09 21:16:03 -07:00
parent 43ffedae1c
commit 1696e15aeb
4 changed files with 166 additions and 163 deletions

View File

@@ -26,6 +26,9 @@ namespace SabreTools.Library.DatFiles
private long _romCount = 0;
private long _sampleCount = 0;
// Special count only used by statistics output
private long _gameCount = 0;
// Total reported size
private long _totalSize = 0;
@@ -86,6 +89,13 @@ namespace SabreTools.Library.DatFiles
set { _sampleCount = value; }
}
// Special count only used by statistics output
public long GameCount
{
get { return _gameCount; }
set { _gameCount = value; }
}
// Total reported size
public long TotalSize
{
@@ -231,6 +241,8 @@ namespace SabreTools.Library.DatFiles
_romCount += stats.RomCount;
_sampleCount += stats.SampleCount;
_gameCount += stats.GameCount;
_totalSize += stats.TotalSize;
// Individual hash counts
@@ -327,6 +339,8 @@ namespace SabreTools.Library.DatFiles
_romCount = 0;
_sampleCount = 0;
_gameCount = 0;
_totalSize = 0;
_crcCount = 0;