[Structs, Enums] Add ItemType enum

This commit is contained in:
Matt Nadareski
2016-08-29 13:50:55 -07:00
parent 19a210562e
commit 638ba055eb
8 changed files with 51 additions and 38 deletions

View File

@@ -120,8 +120,8 @@ Please check the log folder if the stats scrolled offscreen");
{
foreach (Rom rom in roms)
{
datdata.RomCount += (rom.Type == "rom" ? 1 : 0);
datdata.DiskCount += (rom.Type == "disk" ? 1 : 0);
datdata.RomCount += (rom.Type == ItemType.Rom ? 1 : 0);
datdata.DiskCount += (rom.Type == ItemType.Disk ? 1 : 0);
datdata.TotalSize += (rom.Nodump ? 0 : rom.HashData.Size);
datdata.CRCCount += (String.IsNullOrEmpty(rom.HashData.CRC) ? 0 : 1);
datdata.MD5Count += (String.IsNullOrEmpty(rom.HashData.MD5) ? 0 : 1);