Merge pull request #33 from fyr77/v2

This commit is contained in:
Jakob 2023-08-11 19:45:56 +02:00 committed by GitHub
commit d7e2b8a294
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -235,7 +235,7 @@ namespace EnvyUpdate
foreach (var name in names) // Looping through the XML Doc because the name is not the primary key
{
string sName = name.Value.ToString().ToLower();
if (sName == query)
if (sName.Contains(query))
{
Debug.LogToFile("INFO Matched GetValueFromName query: " + sName);
string cleanResult = null;
@ -350,7 +350,7 @@ namespace EnvyUpdate
{
GPUName = obj["VideoProcessor"].ToString().ToLower();
// Remove any 3GB, 6GB or similar from name. We don't need to know the VRAM to get results.
GPUName = Regex.Match(GPUName, "(geforce )?.tx \\w*\\d*( ti)?").Value;
GPUName = Regex.Match(GPUName, "(geforce )((.tx )|(mx))?\\w*\\d*( ti)?").Value;
}
else
GPUName = obj["VideoProcessor"].ToString();