Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ValveSoftware/Proton.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gofman <pgofman@codeweavers.com>2021-05-19 02:06:19 +0300
committerPaul Gofman <pgofman@codeweavers.com>2021-05-27 21:30:27 +0300
commit57dc9d706222ee68e502fcc53b2ff04427983a05 (patch)
tree88d44731adca3cc2e11a686b358359efd65ec57f /lsteamclient
parent751535d8638e6dbe667e02da92f5de8370ddd85f (diff)
lsteamclient: HACK Do not unset SteamAppId for 'Splitgate: Arena Warfare'.
CW-Bug-Id: 18924 To be dropped on the next rebase.
Diffstat (limited to 'lsteamclient')
-rw-r--r--lsteamclient/steamclient_main.c5
1 files changed, 4 insertions, 1 deletions
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]);