Attempt to fix DivaGL detection code crashing

This commit is contained in:
nastys
2024-03-30 22:14:38 +01:00
parent 232ac31190
commit c6ceb61636
2 changed files with 6 additions and 6 deletions
@@ -165,18 +165,18 @@ LPCWSTR CONFIG_FILE = CONFIG_FILE_STRING.c_str();
bool hasConflicts()
{
printf("[ShaderPatch] Checking for conflicts...\n");
puts("[ShaderPatch] Checking for conflicts...");
if (GetModuleHandleW(L"DivaGL.dva") != NULL)
{
// detected DivaGL
printf("[ShaderPatch] Detected DivaGL! Quitting!\n");
puts("[ShaderPatch] Detected DivaGL! Quitting!");
#ifdef _DEBUG
MessageBoxExW(NULL, L"Detected DivaGL! Quitting!\n", L"ShaderPatch", MB_OK, 0);
#endif
return true;
}
printf("[ShaderPatch] No conflicts found.\n");
puts("[ShaderPatch] No conflicts found.");
return false;
}