mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-01-26 13:38:15 +03:00
steamclient: Load steamclient.dylib on mac
This commit is contained in:
parent
0ef10d57f8
commit
3a1b1d1b00
@ -97,14 +97,18 @@ static int load_steamclient(void)
|
||||
if(steamclient_lib)
|
||||
return 1;
|
||||
|
||||
#ifdef __APPLE__
|
||||
steamclient_lib = wine_dlopen("steamclient.dylib", RTLD_NOW, NULL, 0);
|
||||
#else
|
||||
#ifdef _WIN64
|
||||
snprintf(path, PATH_MAX, "%s/.steam/sdk64/steamclient.so", getenv("HOME"));
|
||||
#else
|
||||
snprintf(path, PATH_MAX, "%s/.steam/sdk32/steamclient.so", getenv("HOME"));
|
||||
#endif
|
||||
steamclient_lib = wine_dlopen(path, RTLD_NOW, NULL, 0);
|
||||
#endif
|
||||
if(!steamclient_lib){
|
||||
ERR("unable to load steamclient.so\n");
|
||||
ERR("unable to load native steamclient library\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user