steamclient: Load steamclient.dylib on mac
This commit is contained in:
parent
0ef10d57f8
commit
3a1b1d1b00
1 changed files with 5 additions and 1 deletions
|
@ -97,14 +97,18 @@ static int load_steamclient(void)
|
||||||
if(steamclient_lib)
|
if(steamclient_lib)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
|
steamclient_lib = wine_dlopen("steamclient.dylib", RTLD_NOW, NULL, 0);
|
||||||
|
#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);
|
steamclient_lib = wine_dlopen(path, RTLD_NOW, NULL, 0);
|
||||||
|
#endif
|
||||||
if(!steamclient_lib){
|
if(!steamclient_lib){
|
||||||
ERR("unable to load steamclient.so\n");
|
ERR("unable to load native steamclient library\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue