add check for cards not supporting studio drivers

This commit is contained in:
Jakob 2023-03-14 20:59:44 +01:00
parent 25bd864e76
commit 2e4fa930ff
5 changed files with 45 additions and 3 deletions

View file

@ -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.