From 57dc9d706222ee68e502fcc53b2ff04427983a05 Mon Sep 17 00:00:00 2001 From: Paul Gofman Date: Wed, 19 May 2021 02:06:19 +0300 Subject: [PATCH] lsteamclient: HACK Do not unset SteamAppId for 'Splitgate: Arena Warfare'. CW-Bug-Id: 18924 To be dropped on the next rebase. --- lsteamclient/steamclient_main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lsteamclient/steamclient_main.c b/lsteamclient/steamclient_main.c index 26efcbcc..0d65faff 100644 --- a/lsteamclient/steamclient_main.c +++ b/lsteamclient/steamclient_main.c @@ -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]);