AcceptEntityInput 64bit fix (#2149)
* Fix AcceptEntityInput on 64 bit by using struct from SDK instead of pointer math. * Fix from Malifox. Not sure what it does but it is supposedly related to the AcceptEntityInput crash. * Fix episode1 and darkm sdk paths
This commit is contained in:
@@ -49,6 +49,18 @@ for sdk_name in SM.sdks:
|
||||
os.path.join(builder.sourcePath, 'public', 'jit'),
|
||||
os.path.join(builder.sourcePath, 'public', 'jit', 'x86'),
|
||||
]
|
||||
|
||||
if sdk['name'] in ('episode1', 'darkm'):
|
||||
binary.compiler.cxxincludes += [os.path.join(builder.options.hl2sdk_root, sdk['path'], 'game_shared')]
|
||||
binary.compiler.cxxincludes += [os.path.join(builder.options.hl2sdk_root, sdk['path'], 'dlls')]
|
||||
else:
|
||||
binary.compiler.cxxincludes += [
|
||||
os.path.join(builder.options.hl2sdk_root, sdk['path'], 'game', 'shared'),
|
||||
os.path.join(builder.options.hl2sdk_root, sdk['path'], 'game', 'server'),
|
||||
]
|
||||
|
||||
#binary.sources += [os.path.join(builder.options.hl2sdk_root, sdk['path'], 'game', 'server', 'variant_t.cpp')]
|
||||
|
||||
binary.compiler.defines += ['HAVE_STRING_H']
|
||||
|
||||
if sdk['name'] != 'episode1':
|
||||
|
||||
Reference in New Issue
Block a user