Exemplo n.º 1
0
        /// <summary>
        /// Add statistics from another DatStats object
        /// </summary>
        /// <param name="stats">DatStats object to add from</param>
        public void AddStats(DatStats stats)
        {
            _count += stats.Count;

            _archiveCount += stats.ArchiveCount;
            _biosSetCount += stats.BiosSetCount;
            _diskCount    += stats.DiskCount;
            _releaseCount += stats.ReleaseCount;
            _romCount     += stats.RomCount;
            _sampleCount  += stats.SampleCount;

            _gameCount += stats.GameCount;

            _totalSize += stats.TotalSize;

            // Individual hash counts
            _crcCount    += stats.CRCCount;
            _md5Count    += stats.MD5Count;
            _sha1Count   += stats.SHA1Count;
            _sha256Count += stats.SHA256Count;
            _sha384Count += stats.SHA384Count;
            _sha512Count += stats.SHA512Count;

            // Individual status counts
            _baddumpCount  += stats.BaddumpCount;
            _goodCount     += stats.GoodCount;
            _nodumpCount   += stats.NodumpCount;
            _verifiedCount += stats.VerifiedCount;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Add statistics from another DatStats object
        /// </summary>
        /// <param name="stats">DatStats object to add from</param>
        public void AddStats(DatStats stats)
        {
            this.Count += stats.Count;

            this.ArchiveCount += stats.ArchiveCount;
            this.BiosSetCount += stats.BiosSetCount;
            this.DiskCount    += stats.DiskCount;
            this.ReleaseCount += stats.ReleaseCount;
            this.RomCount     += stats.RomCount;
            this.SampleCount  += stats.SampleCount;

            this.GameCount += stats.GameCount;

            this.TotalSize += stats.TotalSize;

            // Individual hash counts
            this.CRCCount    += stats.CRCCount;
            this.MD5Count    += stats.MD5Count;
            this.SHA1Count   += stats.SHA1Count;
            this.SHA256Count += stats.SHA256Count;
            this.SHA384Count += stats.SHA384Count;
            this.SHA512Count += stats.SHA512Count;

            // Individual status counts
            this.BaddumpCount  += stats.BaddumpCount;
            this.GoodCount     += stats.GoodCount;
            this.NodumpCount   += stats.NodumpCount;
            this.VerifiedCount += stats.VerifiedCount;
        }