Add support for Studio without automatic detection
This commit is contained in:
parent
71cdd9ab92
commit
29e65e6f0a
7 changed files with 84 additions and 14 deletions
|
@ -336,7 +336,7 @@ namespace EnvyUpdate
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if (ex.InnerException is NullReferenceException)
|
||||
if (ex.Message == "Object reference not set to an instance of an object." || ex.InnerException is NullReferenceException)
|
||||
{
|
||||
// Assume no DCH driver is installed if key is not found.
|
||||
return false;
|
||||
|
@ -369,5 +369,16 @@ namespace EnvyUpdate
|
|||
}
|
||||
return dtcid;
|
||||
}
|
||||
|
||||
public static int GetDTID()
|
||||
{
|
||||
/*
|
||||
* 1 = Game Ready Driver (GRD)
|
||||
* 18 = Studio Driver (SD)
|
||||
*/
|
||||
//TODO: find way to differentiate between driver types
|
||||
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
Reference in a new issue