Left some troubleshooting live

This commit is contained in:
Terry MacDonald 2021-10-04 22:41:07 +13:00
parent b6de9aa85f
commit 988d43abdf

View File

@ -509,7 +509,6 @@ namespace DisplayMagician.GameLibraries
XDocument xdoc = XDocument.Load(gameInstallerData); XDocument xdoc = XDocument.Load(gameInstallerData);
float manifestVersion; float manifestVersion;
// Try to figure out which version of the client created this game (as they changed their format a lot) // Try to figure out which version of the client created this game (as they changed their format a lot)
var thing = xdoc.XPathSelectElement("/DiPManifest").Attribute("version").Value;
if (xdoc.XPathSelectElement("/DiPManifest").Attribute("version").Value != null) if (xdoc.XPathSelectElement("/DiPManifest").Attribute("version").Value != null)
{ {
if (Single.TryParse(xdoc.XPathSelectElement("/DiPManifest").Attribute("version").Value, out manifestVersion)) if (Single.TryParse(xdoc.XPathSelectElement("/DiPManifest").Attribute("version").Value, out manifestVersion))