mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-08-25 15:46:45 +00:00
Check for fakenvapi in system32
This commit is contained in:
@@ -2315,6 +2315,10 @@ bool isNvidia()
|
||||
{
|
||||
if (auto unload = static_cast<decltype(&NvAPI_Unload)>(o_NvAPI_QueryInterface(GET_ID(NvAPI_Unload))))
|
||||
unload();
|
||||
|
||||
// Check for fakenvapi in system32, assume it's not nvidia if found
|
||||
if (o_NvAPI_QueryInterface(GET_ID(Fake_InformFGState)) != nullptr)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user