diff --git a/gaseous-identifier/Classes/TosecParser.cs b/gaseous-identifier/Classes/TosecParser.cs index 7b575c7..b4e1a9c 100644 --- a/gaseous-identifier/Classes/TosecParser.cs +++ b/gaseous-identifier/Classes/TosecParser.cs @@ -434,37 +434,45 @@ namespace gaseous_identifier.classes if (dToken.Length > 0) { string[] dTokenCompare = dToken.Split(" "); - switch (dTokenCompare[0].Trim().ToLower()) + if (dTokenCompare[0].Trim().ToLower().StartsWith("a")) { - case "cr": - // cracked - case "f": - // fixed - case "h": - // hacked - case "m": - // modified - case "p": - // pirated - case "t": - // trained - case "tr": - // translated - case "o": - // overdump - case "u": - // underdump - case "v": - // virus - case "b": - // bad dump - case "a": - // alternate - case "!": - // known verified dump - // ------------------- - romObject.flags.Add(dToken); - break; + romObject.flags.Add(dTokenCompare[0].Trim()); + } + else + { + + switch (dTokenCompare[0].Trim().ToLower()) + { + case "cr": + // cracked + case "f": + // fixed + case "h": + // hacked + case "m": + // modified + case "p": + // pirated + case "t": + // trained + case "tr": + // translated + case "o": + // overdump + case "u": + // underdump + case "v": + // virus + case "b": + // bad dump + case "a": + // alternate + case "!": + // known verified dump + // ------------------- + romObject.flags.Add(dToken); + break; + } } } diff --git a/gaseous-identifier/Objects/RomSignatureObject.cs b/gaseous-identifier/Objects/RomSignatureObject.cs index 4aa7c9e..6ad3ae7 100644 --- a/gaseous-identifier/Objects/RomSignatureObject.cs +++ b/gaseous-identifier/Objects/RomSignatureObject.cs @@ -38,6 +38,11 @@ namespace gaseous_identifier.objects public string? Language { get; set; } public string? Copyright { get; set; } public List Roms { get; set; } = new List(); + public int RomCount { get + { + return Roms.Count(); + } + } public enum DemoTypes {