steamclient: Load steamclient.dylib on mac

This commit is contained in:
Andrew Eikum 2018-03-07 14:35:05 -06:00
parent 0ef10d57f8
commit 3a1b1d1b00

View file

@ -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;
} }