lsteamclient: HACK Do not unset SteamAppId for 'Splitgate: Arena Warfare'.

CW-Bug-Id: 18924

To be dropped on the next rebase.
This commit is contained in:
Paul Gofman 2021-05-19 02:06:19 +03:00
parent 751535d863
commit 57dc9d7062

View file

@ -60,9 +60,12 @@ void sync_environment(void)
for (unsigned int i = 0; i < ARRAY_SIZE(steamapi_envs); i++)
{
const char *env_str;
if (!GetEnvironmentVariableA(steamapi_envs[i], value, ARRAY_SIZE(value)))
{
if (GetLastError() == ERROR_ENVVAR_NOT_FOUND)
if (GetLastError() == ERROR_ENVVAR_NOT_FOUND
&& !((env_str = getenv("SteamAppId")) && !strcmp(env_str, "677620")))
{
TRACE("unsetenv(\"%s\")\n", steamapi_envs[i]);
unsetenv(steamapi_envs[i]);