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
@@ -155,18 +155,18 @@ void InjectCode(void* address, const std::vector<uint8_t> data)
bool hasConflicts()
{
printf("[Novidia] Checking for conflicts...\n");
puts("[Novidia] Checking for conflicts...");
if(GetModuleHandleW(L"DivaGL.dva") != NULL)
{
// detected DivaGL
printf("[Novidia] Detected DivaGL! Quitting!\n");
puts("[Novidia] Detected DivaGL! Quitting!");
#ifdef _DEBUG
MessageBoxExW(NULL, L"Detected DivaGL! Quitting!\n", L"Novidia", MB_OK, 0);
#endif
return true;
}
printf("[Novidia] No conflicts found.\n");
puts("[Novidia] No conflicts found.");
return false;
}
@@ -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;
}