mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-04-16 06:12:36 +03:00
steamclient: Give steamclient.dylib path explicitly on macos
This commit is contained in:
parent
cd99923b5e
commit
8a45036984
@ -98,15 +98,20 @@ static int load_steamclient(void)
|
|||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
steamclient_lib = wine_dlopen("steamclient.dylib", RTLD_NOW, NULL, 0);
|
if(getenv("STEAM_COMPAT_CLIENT_INSTALL_PATH")){
|
||||||
|
snprintf(path, PATH_MAX, "%s/steamclient.dylib", getenv("STEAM_COMPAT_CLIENT_INSTALL_PATH"));
|
||||||
|
}else{
|
||||||
|
WARN("Old Steam client, falling back to DYLD environment to locate native steamclient library\n");
|
||||||
|
strcpy(path, "steamclient.dylib");
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
#ifdef _WIN64
|
#ifdef _WIN64
|
||||||
snprintf(path, PATH_MAX, "%s/.steam/sdk64/steamclient.so", getenv("HOME"));
|
snprintf(path, PATH_MAX, "%s/.steam/sdk64/steamclient.so", getenv("HOME"));
|
||||||
#else
|
#else
|
||||||
snprintf(path, PATH_MAX, "%s/.steam/sdk32/steamclient.so", getenv("HOME"));
|
snprintf(path, PATH_MAX, "%s/.steam/sdk32/steamclient.so", getenv("HOME"));
|
||||||
#endif
|
#endif
|
||||||
steamclient_lib = wine_dlopen(path, RTLD_NOW, NULL, 0);
|
|
||||||
#endif
|
#endif
|
||||||
|
steamclient_lib = wine_dlopen(path, RTLD_NOW, NULL, 0);
|
||||||
if(!steamclient_lib){
|
if(!steamclient_lib){
|
||||||
ERR("unable to load native steamclient library\n");
|
ERR("unable to load native steamclient library\n");
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user