add check for cards not supporting studio drivers
This commit is contained in:
parent
25bd864e76
commit
2e4fa930ff
5 changed files with 45 additions and 3 deletions
|
@ -394,8 +394,6 @@ namespace EnvyUpdate
|
|||
|
||||
public static string GetGpuUrl()
|
||||
{
|
||||
//TODO: Make a list of languages and match OS language to driver
|
||||
//int langid;
|
||||
int psid;
|
||||
int pfid;
|
||||
int osid;
|
||||
|
@ -437,6 +435,11 @@ namespace EnvyUpdate
|
|||
//relative url
|
||||
gpuURL = "https://www.nvidia.com/Download/" + gpuURL;
|
||||
}
|
||||
else if (gpuURL.Contains("No certified downloads were found"))
|
||||
{
|
||||
//configuration not supported
|
||||
throw new ArgumentException();
|
||||
}
|
||||
else
|
||||
{
|
||||
//panic.
|
||||
|
|
Reference in a new issue