1.1 --- a/loader/loader.cpp Fri Oct 30 01:24:55 2009 -0700
1.2 +++ b/loader/loader.cpp Fri Oct 30 14:04:43 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 * SourceMod
1.9 - * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
1.10 + * Copyright (C) 2004-2009 AlliedModders LLC. All rights reserved.
1.11 * =============================================================================
1.12 *
1.13 * This program is free software; you can redistribute it and/or modify it under
1.14 @@ -25,8 +25,6 @@
1.15 * this exception to all derivative works. AlliedModders LLC defines further
1.16 * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
1.17 * or <http://www.sourcemod.net/license.php>.
1.18 - *
1.19 - * Version: $Id$
1.20 */
1.21
1.22 #include <ISmmPluginExt.h>
1.23 @@ -48,8 +46,6 @@
1.24 return (c == '/' || c == '\\');
1.25 }
1.26 #include <Windows.h>
1.27 - #define TF_PATH "\\tf\\"
1.28 - #define DOD_PATH "\\dod\\"
1.29 #else
1.30 #define DLL_EXPORT extern "C" __attribute__((visibility("default")))
1.31 #define openlib(lib) dlopen(lib, RTLD_NOW)
1.32 @@ -63,8 +59,6 @@
1.33 return (c == '/');
1.34 }
1.35 #include <dlfcn.h>
1.36 - #define TF_PATH "/tf/"
1.37 - #define DOD_PATH "/dod/"
1.38 #endif
1.39
1.40 #define METAMOD_API_MAJOR 2
1.41 @@ -218,12 +212,6 @@
1.42 }
1.43 case SOURCE_ENGINE_ORANGEBOX:
1.44 {
1.45 - if (strstr(mli->pl_path, TF_PATH) || strstr(mli->pl_path, DOD_PATH))
1.46 - {
1.47 - filename = FILENAME_1_6_EP2VALVE;
1.48 - break;
1.49 - }
1.50 -
1.51 filename = FILENAME_1_6_EP2;
1.52 break;
1.53 }
1.54 @@ -237,6 +225,11 @@
1.55 filename = FILENAME_1_6_DARKM;
1.56 break;
1.57 }
1.58 + case SOURCE_ENGINE_ORANGEBOXVALVE:
1.59 + {
1.60 + filename = FILENAME_1_6_EP2VALVE;
1.61 + break;
1.62 + }
1.63 case SOURCE_ENGINE_LEFT4DEAD2:
1.64 {
1.65 filename = FILENAME_1_6_L4D2;