Change DivaGL detection method, fix non_nv_name

This commit is contained in:
nastys
2024-03-26 20:16:40 +01:00
parent 2c10f27ab0
commit b6fc62bbf1
5 changed files with 80 additions and 9 deletions
@@ -294,10 +294,9 @@ BOOL APIENTRY DllMain(HMODULE hModule,
{
if (ul_reason_for_call == DLL_PROCESS_ATTACH)
{
if (GetModuleHandleW(L"DivaGL.dva") != NULL)
if (hasConflicts())
{
// detected DivaGL
printf("[ShaderPatch] Detected DivaGL! Quitting!\n");
// detected an incompatible plugin (i.e. DivaGL)
return TRUE;
}