fix fake profile and studio driver
This commit is contained in:
parent
cdcfccd87c
commit
d147415feb
6 changed files with 76 additions and 29 deletions
|
@ -59,6 +59,22 @@ namespace EnvyUpdate
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Check for existence of Nvidia GPU
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static bool IsNvidia()
|
||||
{
|
||||
Debug.LogToFile("INFO Checking for existence of Nvidia GPU.");
|
||||
|
||||
foreach (ManagementObject obj in new ManagementObjectSearcher("SELECT * FROM Win32_VideoController").Get())
|
||||
{
|
||||
if (obj["Description"].ToString().ToLower().Contains("nvidia"))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a standard Windows shortcut.
|
||||
/// </summary>
|
||||
|
|
Reference in a new issue