loader/loader.cpp
changeset 730 145910dd7235
parent 725 9eec529c3caa
child 738 a748d39fd792
     1.1 --- a/loader/loader.cpp	Tue Jul 27 04:26:14 2010 -0500
     1.2 +++ b/loader/loader.cpp	Sat Aug 07 15:26:30 2010 -0500
     1.3 @@ -2,7 +2,7 @@
     1.4   * vim: set ts=4 sw=4 tw=99 noet :
     1.5   * ======================================================
     1.6   * Metamod:Source
     1.7 - * Copyright (C) 2004-2009 AlliedModders LLC and authors.
     1.8 + * Copyright (C) 2004-2010 AlliedModders LLC and authors.
     1.9   * All rights reserved.
    1.10   * ======================================================
    1.11   *
    1.12 @@ -183,12 +183,15 @@
    1.13  #if defined _WIN32
    1.14  #define TIER0_NAME			"bin\\tier0.dll"
    1.15  #define VSTDLIB_NAME		"bin\\vstdlib.dll"
    1.16 +#define STEAM_API_NAME		"bin\\steam_api.dll"
    1.17  #elif defined __APPLE__
    1.18  #define TIER0_NAME			"bin/libtier0.dylib"
    1.19  #define VSTDLIB_NAME		"bin/libvstdlib.dylib"
    1.20 +#define STEAM_API_NAME		"bin/libsteam_api.dylib"
    1.21  #elif defined __linux__
    1.22  #define TIER0_NAME			"bin/" LIB_PREFIX "tier0" LIB_SUFFIX
    1.23  #define VSTDLIB_NAME		"bin/" LIB_PREFIX "vstdlib" LIB_SUFFIX
    1.24 +#define STEAM_API_NAME		"bin/" LIB_PREFIX "steam_api" LIB_SUFFIX
    1.25  #endif
    1.26  
    1.27  const char *
    1.28 @@ -284,12 +287,12 @@
    1.29  			char lib_path[PLATFORM_MAX_PATH];
    1.30  
    1.31  			/* These would have failed already if they were going to? */
    1.32 -			mm_ResolvePath(TIER0_NAME, lib_path, sizeof(lib_path));
    1.33 +			mm_ResolvePath(STEAM_API_NAME, lib_path, sizeof(lib_path));
    1.34  			void *lib = mm_LoadLibrary(lib_path, NULL, 0);
    1.35 -			void *tier0_ctime = mm_GetLibAddress(lib, "Plat_ctime");
    1.36 +			void *steamapi_breakpad = mm_GetLibAddress(lib, "SteamAPI_SetBreakpadAppID");
    1.37  			mm_UnloadLibrary(lib);
    1.38  
    1.39 -			if (tier0_ctime != NULL)
    1.40 +			if (steamapi_breakpad != NULL)
    1.41  			{
    1.42  				return MMBackend_Episode2Valve;
    1.43  			}