fix: fixed parsing of “a” dump flag

This commit is contained in:
Michael Green
2023-02-21 23:07:07 +11:00
parent 4c844f99cd
commit 3491968519
2 changed files with 43 additions and 30 deletions

View File

@@ -434,6 +434,13 @@ namespace gaseous_identifier.classes
if (dToken.Length > 0) if (dToken.Length > 0)
{ {
string[] dTokenCompare = dToken.Split(" "); string[] dTokenCompare = dToken.Split(" ");
if (dTokenCompare[0].Trim().ToLower().StartsWith("a"))
{
romObject.flags.Add(dTokenCompare[0].Trim());
}
else
{
switch (dTokenCompare[0].Trim().ToLower()) switch (dTokenCompare[0].Trim().ToLower())
{ {
case "cr": case "cr":
@@ -466,6 +473,7 @@ namespace gaseous_identifier.classes
romObject.flags.Add(dToken); romObject.flags.Add(dToken);
break; break;
} }
}
} }
} }

View File

@@ -38,6 +38,11 @@ namespace gaseous_identifier.objects
public string? Language { get; set; } public string? Language { get; set; }
public string? Copyright { get; set; } public string? Copyright { get; set; }
public List<Rom> Roms { get; set; } = new List<Rom>(); public List<Rom> Roms { get; set; } = new List<Rom>();
public int RomCount { get
{
return Roms.Count();
}
}
public enum DemoTypes public enum DemoTypes
{ {