Update and move DivaGL plugin conflict checks to launcher
This commit is contained in:
@@ -294,12 +294,6 @@ BOOL APIENTRY DllMain(HMODULE hModule,
|
||||
{
|
||||
if (ul_reason_for_call == DLL_PROCESS_ATTACH)
|
||||
{
|
||||
if (hasConflicts())
|
||||
{
|
||||
// detected an incompatible plugin (i.e. DivaGL)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
// install a thunk to hook
|
||||
InjectCode((void*)0x1405e5991, { 0x48, 0x83, 0xec, 0x28 }); // SUB RSP, 0x28
|
||||
InjectCode((void*)0x1405e5995, { 0xe8, 0x56, 0xe8, 0xb9, 0xff }); // CALL 0x1401841f0
|
||||
|
||||
@@ -161,22 +161,3 @@ LPCWSTR CONFIG_FILE = CONFIG_FILE_STRING.c_str();
|
||||
// delete[] hModules;
|
||||
// return false;
|
||||
//}
|
||||
|
||||
|
||||
bool hasConflicts()
|
||||
{
|
||||
puts("[ShaderPatch] Checking for conflicts...");
|
||||
|
||||
if (GetModuleHandleW(L"DivaGL.dva") != NULL)
|
||||
{
|
||||
// detected DivaGL
|
||||
puts("[ShaderPatch] Detected DivaGL! Quitting!");
|
||||
#ifdef _DEBUG
|
||||
MessageBoxExW(NULL, L"Detected DivaGL! Quitting!\n", L"ShaderPatch", MB_OK, 0);
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
puts("[ShaderPatch] No conflicts found.");
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user