#383 add support for Dark Colony
This commit is contained in:
parent
d45f35ab57
commit
f4325a73f5
6 changed files with 22 additions and 1 deletions
|
@ -116,6 +116,7 @@ void cfg_load()
|
|||
GET_BOOL(g_config.carma95_hack, "carma95_hack", FALSE);
|
||||
GET_BOOL(g_config.sirtech_hack, "sirtech_hack", FALSE);
|
||||
GET_BOOL(g_config.flightsim98_hack, "flightsim98_hack", FALSE);
|
||||
GET_BOOL(g_config.darkcolony_hack, "darkcolony_hack", FALSE);
|
||||
|
||||
GameHandlesClose = GameHandlesClose || g_config.infantryhack;
|
||||
|
||||
|
@ -874,6 +875,11 @@ static void cfg_create_ini()
|
|||
"[corsairs]\n"
|
||||
"adjmouse=true\n"
|
||||
"\n"
|
||||
"; Dark Colony\n"
|
||||
"[dc16]\n"
|
||||
"maxgameticks=30\n"
|
||||
"darkcolony_hack=true\n"
|
||||
"\n"
|
||||
"; Divine Divinity\n"
|
||||
"[div]\n"
|
||||
"resolutions=2\n"
|
||||
|
|
|
@ -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)))
|
||||
|
|
|
@ -2046,6 +2046,14 @@ HWND WINAPI fake_CreateWindowExA(
|
|||
dwStyle &= ~WS_POPUP;
|
||||
}
|
||||
|
||||
/* Dark Colony */
|
||||
if (HIWORD(lpClassName) && _strcmpi(lpClassName, "Merc Direct Draw Driver") == 0 &&
|
||||
lpWindowName && _strcmpi(lpWindowName, "Direct Draw Driver") == 0 &&
|
||||
!dwExStyle)
|
||||
{
|
||||
dwExStyle |= WS_EX_APPWINDOW;
|
||||
}
|
||||
|
||||
/* Fallout 1/2 */
|
||||
if (HIWORD(lpClassName) && _strcmpi(lpClassName, "GNW95 Class") == 0 &&
|
||||
lpWindowName && strstr(lpWindowName, "FALLOUT"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue