#383 add support for Dark Colony

This commit is contained in:
FunkyFr3sh 2025-01-16 05:44:12 +01:00
parent d45f35ab57
commit f4325a73f5
6 changed files with 22 additions and 1 deletions

View file

@ -57,6 +57,11 @@ BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
g_dbg_exception_handle = add_handler(1, (PVECTORED_EXCEPTION_HANDLER)dbg_vectored_exception_handler);
}
if (g_config.darkcolony_hack)
{
DisableProcessWindowsGhosting();
}
char buf[1024];
if (GetEnvironmentVariable("__COMPAT_LAYER", buf, sizeof(buf)))