From 076726e89f20f60ed980e7a4ab2dc54462db0479 Mon Sep 17 00:00:00 2001 From: Mladen Mihajlovic Date: Tue, 7 Aug 2018 11:45:36 +0200 Subject: [PATCH] Fixes #3 Updates required to parse new MAME XML structure --- Mamesaver/Mamesaver.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mamesaver/Mamesaver.cs b/Mamesaver/Mamesaver.cs index 5ddda61..ad18108 100644 --- a/Mamesaver/Mamesaver.cs +++ b/Mamesaver/Mamesaver.cs @@ -128,7 +128,7 @@ public List 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));