networking
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "string.h"
|
||||
#include "stdio.h"
|
||||
#include "tier0/platform.h"
|
||||
#include "unistd.h"
|
||||
#include "dlfcn.h"
|
||||
#include "libgen.h"
|
||||
@@ -29,6 +30,7 @@
|
||||
static char szLauncherPath[MAX_PATH];
|
||||
static char szEnginePath[MAX_PATH];
|
||||
static char szTier0Path[MAX_PATH];
|
||||
static char szSteamPath[MAX_PATH];
|
||||
|
||||
void *pEngineLib = NULL;
|
||||
void *pTier0Lib = NULL;
|
||||
@@ -45,6 +47,7 @@ int main( int argc, char **argv ) {
|
||||
|
||||
snprintf(szEnginePath, MAX_PATH, "%s/libengine.so", szLauncherPath);
|
||||
snprintf(szTier0Path, MAX_PATH, "%s/libtier0.so", szLauncherPath);
|
||||
snprintf(szSteamPath, MAX_PATH, "%s/libsteam_api.so", szLauncherPath);
|
||||
#endif
|
||||
#ifdef __APPLE__
|
||||
uint32_t pathSize = sizeof(szLauncherPath);
|
||||
@@ -55,6 +58,8 @@ int main( int argc, char **argv ) {
|
||||
snprintf(szEnginePath, MAX_PATH, "%s/libengine.dylib", szLauncherPath2);
|
||||
snprintf(szTier0Path, MAX_PATH, "%s/libtier0.dylib", szLauncherPath2);
|
||||
#endif
|
||||
if ( !dlopen(szSteamPath, RTLD_NOW ))
|
||||
printf("Failed to open steam\n");
|
||||
pTier0Lib = dlopen(szTier0Path, RTLD_NOW | RTLD_GLOBAL);
|
||||
if ( !pTier0Lib ) {
|
||||
printf("Failed to open libtier0\n");
|
||||
|
||||
Reference in New Issue
Block a user