From 1acf5f44df843f6fb8c5b7c682322d6cf24f3ddb Mon Sep 17 00:00:00 2001 From: fyr77 Date: Wed, 29 Jul 2020 16:08:08 +0200 Subject: [PATCH] Update Util.cs --- EnvyUpdate/Util.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/EnvyUpdate/Util.cs b/EnvyUpdate/Util.cs index e6f41bc..8d37bdd 100644 --- a/EnvyUpdate/Util.cs +++ b/EnvyUpdate/Util.cs @@ -262,14 +262,14 @@ namespace EnvyUpdate string GPUName = null; foreach (ManagementObject obj in new ManagementObjectSearcher("SELECT * FROM Win32_VideoController").Get()) { - if (obj["Description"].ToString().ToLower().Contains("radeon")) - { + //if (obj["Description"].ToString().ToLower().Contains("radeon")) + //{ // If it's an AMD card, use the "Name" field, because they use chip code numbers in "VideoProcessor", which we do not need. // Todo for 3.0: Find a way to ignore mobile Radeon GPUs in Laptops. - // For now: Since we only care about Nvidia GPUs, don't break even if an AMD card is found. - GPUName = obj["Name"].ToString().ToLower(); + // For now: Since we only care about Nvidia GPUs, this is commented out. + //GPUName = obj["Name"].ToString().ToLower(); //break; - } + //} if (obj["Description"].ToString().ToLower().Contains("nvidia")) { // If it's an Nvidia GPU, use VideoProcessor so we don't have to truncate the resulting string.