core/GameConfigs.cpp
changeset 2863 d740d9cdf53a
parent 2847 1daf209d9dd2
child 2901 f5a1cf24f505
     1.1 --- a/core/GameConfigs.cpp	Wed Nov 04 13:52:12 2009 -0500
     1.2 +++ b/core/GameConfigs.cpp	Fri Nov 06 16:24:40 2009 -0600
     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 <string.h>
    1.23 @@ -506,7 +504,11 @@
    1.24  						void *handle = dlopen(info.dli_fname, RTLD_NOW);
    1.25  						if (handle)
    1.26  						{
    1.27 +#if SOURCE_ENGINE == SE_LEFT4DEAD2
    1.28 +							final_addr = g_MemUtils.ResolveSymbol(handle, &s_TempSig.sig[1]);
    1.29 +#else
    1.30  							final_addr = dlsym(handle, &s_TempSig.sig[1]);
    1.31 +#endif
    1.32  							dlclose(handle);
    1.33  						} else {
    1.34  							g_Logger.LogError("[SM] Unable to load library \"%s\" (gameconf \"%s\")",