1.1 --- a/loader/loader.cpp Thu Oct 29 05:21:54 2009 -0500
1.2 +++ b/loader/loader.cpp Thu Oct 29 10:57:27 2009 -0500
1.3 @@ -1,8 +1,8 @@
1.4 /**
1.5 - * vim: set ts=4 :
1.6 + * vim: set ts=4 sw=4 tw=99 noet :
1.7 * ======================================================
1.8 * Metamod:Source
1.9 - * Copyright (C) 2004-2008 AlliedModders LLC and authors.
1.10 + * Copyright (C) 2004-2009 AlliedModders LLC and authors.
1.11 * All rights reserved.
1.12 * ======================================================
1.13 *
1.14 @@ -21,8 +21,6 @@
1.15 * 2. Altered source versions must be plainly marked as such, and must not be
1.16 * misrepresented as being the original software.
1.17 * 3. This notice may not be removed or altered from any source distribution.
1.18 - *
1.19 - * Version: $Id$
1.20 */
1.21
1.22 #include <time.h>
1.23 @@ -72,16 +70,17 @@
1.24 static const char *backend_names[] =
1.25 {
1.26 "1.ep1",
1.27 + "2.darkm",
1.28 "2.ep2",
1.29 "2.l4d",
1.30 - "2.darkm"
1.31 + "2.l4d2"
1.32 };
1.33
1.34 #if defined _WIN32
1.35 #define LIBRARY_EXT ".dll"
1.36 #define LIBRARY_MINEXT ".dll"
1.37 #elif defined __linux__
1.38 -#define LIBRARY_EXT "_i486.so"
1.39 +#define LIBRARY_EXT BINARY_SUFFIX
1.40 #define LIBRARY_MINEXT ".so"
1.41 #endif
1.42
1.43 @@ -173,8 +172,8 @@
1.44 #define TIER0_NAME "bin\\tier0.dll"
1.45 #define VSTDLIB_NAME "bin\\vstdlib.dll"
1.46 #elif defined __linux__
1.47 -#define TIER0_NAME "bin/tier0_i486.so"
1.48 -#define VSTDLIB_NAME "bin/vstdlib_i486.so"
1.49 +#define TIER0_NAME "bin/tier0" BINARY_SUFFIX
1.50 +#define VSTDLIB_NAME "bin/vstdlib" BINARY_SUFFIX
1.51 #endif
1.52
1.53 const char *
1.54 @@ -244,6 +243,10 @@
1.55 if (engineFactory("VEngineServer022", NULL) != NULL &&
1.56 engineFactory("VEngineCvar007", NULL) != NULL)
1.57 {
1.58 + if (engineFactory("VPrecacheSystem001", NULL) != NULL)
1.59 + {
1.60 + return MMBackend_Left4Dead2;
1.61 + }
1.62 return MMBackend_Left4Dead;
1.63 }
1.64 else if (engineFactory("VEngineServer021", NULL) != NULL)