Skip to content

Commit

Permalink
Fixes #3 Updates required to parse new MAME XML structure
Browse files Browse the repository at this point in the history
  • Loading branch information
mika76 committed Aug 7, 2018
1 parent 63f090b commit 076726e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mamesaver/Mamesaver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public List<SelectableGame> GetGameList()

foreach (string key in verifiedGames.Keys)
{
XmlNode xmlGame = doc.SelectSingleNode(string.Format("mame/game[@name='{0}']", key));
XmlNode xmlGame = doc.SelectSingleNode(string.Format("//machine[@name='{0}']", key));

if ( xmlGame != null && xmlGame["driver"] != null && xmlGame["driver"].Attributes["status"].Value == "good" )
games.Add(new SelectableGame(xmlGame.Attributes["name"].Value, xmlGame["description"].InnerText, xmlGame["year"] != null ? xmlGame["year"].InnerText : "", xmlGame["manufacturer"] != null ? xmlGame["manufacturer"].InnerText : "", false));
Expand Down

0 comments on commit 076726e

Please sign in to comment.