Update for hl2sdk-nd changes.
authorNicholas Hastings <skamonkey@gmail.com>
Sun Apr 20 12:00:04 2014 -0400 (2014-04-20)
changeset 4319f17d11bcd078
parent 4318 c9563f2bd126
child 4320 bdf9028efe94
Update for hl2sdk-nd changes.
AMBuildScript
extensions/sdktools/vhelpers.cpp
     1.1 --- a/AMBuildScript	Sun Apr 20 08:18:39 2014 -0400
     1.2 +++ b/AMBuildScript	Sun Apr 20 12:00:04 2014 -0400
     1.3 @@ -356,9 +356,9 @@
     1.4      if sdk.name in ['blade', 'insurgency', 'csgo', 'dota']:
     1.5        compiler.defines += ['NETWORK_VARS_ENABLED']
     1.6  
     1.7 -    if sdk.name in ['css', 'hl2dm', 'dods', '2013', 'tf2', 'l4d2', 'dota']:
     1.8 +    if sdk.name in ['css', 'hl2dm', 'dods', '2013', 'tf2', 'nd', 'l4d2', 'dota']:
     1.9        if builder.target_platform in ['linux', 'mac']:
    1.10 -        compiler.defines += ['NO_MALLOC_OVERRIDE']
    1.11 +        compiler.defines += ['NO_HOOK_MALLOC', 'NO_MALLOC_OVERRIDE']
    1.12  
    1.13      for path in paths:
    1.14        compiler.cxxincludes += [os.path.join(sdk.path, *path)]
    1.15 @@ -405,9 +405,9 @@
    1.16      dynamic_libs = []
    1.17      if builder.target_platform == 'linux':
    1.18        compiler.linkflags[0:0] = ['-lm']
    1.19 -      if sdk.name in ['css', 'hl2dm', 'dods', 'tf2', '2013', 'l4d2']:
    1.20 +      if sdk.name in ['css', 'hl2dm', 'dods', 'tf2', '2013', 'nd', 'l4d2']:
    1.21          dynamic_libs = ['libtier0_srv.so', 'libvstdlib_srv.so']
    1.22 -      elif sdk.name in ['l4d', 'nd', 'blade', 'insurgency', 'csgo', 'dota']:
    1.23 +      elif sdk.name in ['l4d', 'blade', 'insurgency', 'csgo', 'dota']:
    1.24          dynamic_libs = ['libtier0.so', 'libvstdlib.so']
    1.25        else:
    1.26          dynamic_libs = ['tier0_i486.so', 'vstdlib_i486.so']
     2.1 --- a/extensions/sdktools/vhelpers.cpp	Sun Apr 20 08:18:39 2014 -0400
     2.2 +++ b/extensions/sdktools/vhelpers.cpp	Sun Apr 20 12:00:04 2014 -0400
     2.3 @@ -597,7 +597,12 @@
     2.4  {
     2.5  	static CEntityFactoryDictionary *dict = NULL;
     2.6  
     2.7 -#if SOURCE_ENGINE == SE_TF2 || SOURCE_ENGINE == SE_CSS || SOURCE_ENGINE == SE_DODS || SOURCE_ENGINE == SE_HL2DM || SOURCE_ENGINE == SE_SDK2013
     2.8 +#if SOURCE_ENGINE == SE_TF2 \
     2.9 +	|| SOURCE_ENGINE == SE_CSS \
    2.10 +	|| SOURCE_ENGINE == SE_DODS \
    2.11 +	|| SOURCE_ENGINE == SE_HL2DM \
    2.12 +	|| SOURCE_ENGINE == SE_SDK2013 \
    2.13 +	|| SOURCE_ENGINE == SE_NUCLEARDAWN
    2.14  	dict = (CEntityFactoryDictionary *) servertools->GetEntityFactoryDictionary();
    2.15  #else
    2.16  	if (dict == NULL)