potential solution for #31?
This commit is contained in:
parent
645c9e72d2
commit
90fc53ce00
2 changed files with 33 additions and 23 deletions
|
@ -49,5 +49,5 @@ using System.Windows;
|
|||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("2.18")]
|
||||
[assembly: AssemblyFileVersion("2.18")]
|
||||
[assembly: AssemblyVersion("2.19")]
|
||||
[assembly: AssemblyFileVersion("2.19")]
|
||||
|
|
|
@ -153,11 +153,24 @@ namespace EnvyUpdate
|
|||
|
||||
Debug.LogToFile("INFO Got Nvidia GPU list.");
|
||||
if (xmlcontent == null)
|
||||
{
|
||||
Debug.LogToFile("WARN GPU list is NULL! This is a possible error source.");
|
||||
|
||||
switch (IDtype)
|
||||
{
|
||||
case "osid":
|
||||
id = GetOSID();
|
||||
Debug.LogToFile("WARN Ignore previous warning, just getting osid.");
|
||||
Debug.LogToFile("INFO Got osid: " + id);
|
||||
break;
|
||||
default:
|
||||
Debug.LogToFile("WARN GetIDs was called, but nothing was specified.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
XDocument xDoc = XDocument.Parse(xmlcontent);
|
||||
string gpuName = GetGPUName(true);
|
||||
|
||||
switch (IDtype)
|
||||
{
|
||||
case "psid":
|
||||
|
@ -168,14 +181,11 @@ namespace EnvyUpdate
|
|||
id = GetValueFromName(xDoc, gpuName, false);
|
||||
Debug.LogToFile("INFO Got pfid: " + id);
|
||||
break;
|
||||
case "osid":
|
||||
id = GetOSID();
|
||||
Debug.LogToFile("INFO Got osid: " + id);
|
||||
break;
|
||||
default:
|
||||
Debug.LogToFile("WARN GetIDs was called, but nothing was specified.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return id;
|
||||
}
|
||||
|
|
Reference in a new issue