Update and move DivaGL plugin conflict checks to launcher
This commit is contained in:
@@ -380,12 +380,6 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserv
|
||||
|
||||
if (ul_reason_for_call == DLL_PROCESS_ATTACH)
|
||||
{
|
||||
if (hasConflicts())
|
||||
{
|
||||
// detected an incompatible plugin (i.e. DivaGL)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
loadConfig();
|
||||
|
||||
if (!disable_amd_check)
|
||||
|
||||
@@ -152,21 +152,3 @@ void InjectCode(void* address, const std::vector<uint8_t> data)
|
||||
// delete[] hModules;
|
||||
// return false;
|
||||
//}
|
||||
|
||||
bool hasConflicts()
|
||||
{
|
||||
puts("[Novidia] Checking for conflicts...");
|
||||
|
||||
if(GetModuleHandleW(L"DivaGL.dva") != NULL)
|
||||
{
|
||||
// detected DivaGL
|
||||
puts("[Novidia] Detected DivaGL! Quitting!");
|
||||
#ifdef _DEBUG
|
||||
MessageBoxExW(NULL, L"Detected DivaGL! Quitting!\n", L"Novidia", MB_OK, 0);
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
puts("[Novidia] No conflicts found.");
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user