Update and move DivaGL plugin conflict checks to launcher

This commit is contained in:
nastys
2024-04-10 20:00:12 +02:00
parent c6ceb61636
commit be29f090f3
7 changed files with 18 additions and 56 deletions
@@ -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;
}