replace gpu detection regex

This commit is contained in:
Jakob 2023-04-01 18:04:34 +02:00
parent 01c6f81da6
commit 7173f2ec5e
3 changed files with 4 additions and 6 deletions

View file

@ -298,9 +298,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.Replace(GPUName, " \\d+gb", "");
GPUName = Regex.Replace(GPUName, " max-q", "");
GPUName = Regex.Replace(GPUName, "nvidia ", "");
GPUName = Regex.Match(GPUName, "(geforce )?.tx \\w*\\d*").Value;
}
else
GPUName = obj["VideoProcessor"].ToString();