Skip to content

Commit

Permalink
Added missing RetroAchievments attributes. (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-j-green authored Feb 5, 2025
1 parent 01e9f71 commit 5be9061
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ public RomSignatureObject Parse(string XMLFile)
// generate new ROM object
RomSignatureObject.Game.Rom romObject = new RomSignatureObject.Game.Rom();
romObject.SignatureSource = RomSignatureObject.Game.Rom.SignatureSourceType.RetroAchievements;
romObject.Attributes = new Dictionary<string, object>();

// get the ROM data
foreach (XmlAttribute romAttribute in gameNode.Attributes)
Expand Down Expand Up @@ -355,7 +356,6 @@ public RomSignatureObject Parse(string XMLFile)
}
}


break;

case "size":
Expand All @@ -373,6 +373,13 @@ public RomSignatureObject Parse(string XMLFile)
case "sha1":
romObject.Sha1 = romAttribute.Value;
break;

default:
if (romAttribute.Value.Length > 0)
{
romObject.Attributes.Add(romAttribute.Name, romAttribute.Value);
}
break;
}
}
gameObject.Roms.Add(romObject);
Expand Down

0 comments on commit 5be9061

Please sign in to comment.