#295 add workaround for Win11 steam RA2 crash

This commit is contained in:
FunkyFr3sh 2024-03-11 17:48:27 +01:00
parent f2d1e9e3e6
commit 82571fe8db
6 changed files with 32 additions and 10 deletions

View file

@ -52,6 +52,12 @@ BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
while (s)
{
/* Workaround for bug in Windows 11 (Steam RA2 crash) */
if (_strcmpi(s, "Win7RTM") == 0)
{
g_config.d3d9on12 = TRUE;
}
if (_strcmpi(s, "WIN95") == 0 || _strcmpi(s, "WIN98") == 0 || _strcmpi(s, "NT4SP5") == 0)
{
char mes[128] = { 0 };