lsteamclient: Sync environment only once

This commit is contained in:
Andrew Eikum 2020-03-18 13:49:55 -05:00
parent 6ad6ed2249
commit 18e235f96b

View File

@ -452,11 +452,11 @@ static int load_steamclient(void)
{ {
char path[PATH_MAX], resolved_path[PATH_MAX]; char path[PATH_MAX], resolved_path[PATH_MAX];
sync_environment();
if(steamclient_lib) if(steamclient_lib)
return 1; return 1;
sync_environment();
#ifdef __APPLE__ #ifdef __APPLE__
if(getenv("STEAM_COMPAT_CLIENT_INSTALL_PATH")){ if(getenv("STEAM_COMPAT_CLIENT_INSTALL_PATH")){
snprintf(path, PATH_MAX, "%s/steamclient.dylib", getenv("STEAM_COMPAT_CLIENT_INSTALL_PATH")); snprintf(path, PATH_MAX, "%s/steamclient.dylib", getenv("STEAM_COMPAT_CLIENT_INSTALL_PATH"));