Example #1
0
        /// <summary>
        /// Add statistics from another DatStats object
        /// </summary>
        /// <param name="stats">DatStats object to add from</param>
        public void AddStatistics(ItemDictionary stats)
        {
            TotalCount += stats.Count;

            ArchiveCount += stats.ArchiveCount;
            BiosSetCount += stats.BiosSetCount;
            ChipCount    += stats.ChipCount;
            DiskCount    += stats.DiskCount;
            MediaCount   += stats.MediaCount;
            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;
            SpamSumCount += stats.SpamSumCount;

            // Individual status counts
            BaddumpCount  += stats.BaddumpCount;
            GoodCount     += stats.GoodCount;
            NodumpCount   += stats.NodumpCount;
            RemovedCount  += stats.RemovedCount;
            VerifiedCount += stats.VerifiedCount;
        }
Example #2
0
 /// <summary>
 /// Create a new DatFile from an existing one
 /// </summary>
 /// <param name="datFile">DatFile to get the values from</param>
 public DatFile(DatFile datFile)
 {
     logger = new Logger(this);
     if (datFile != null)
     {
         Header = datFile.Header;
         Items  = datFile.Items;
     }
 }