forked from Satanic-Spirit/Tickrate-Enabler
-
Notifications
You must be signed in to change notification settings - Fork 9
/
AMBuilder
51 lines (39 loc) · 1.85 KB
/
AMBuilder
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
import os, sys
projectName = 'tickrate_enabler'
# smsdk_ext.cpp will be automatically added later
sourceFiles = [
'codepatch/patchmanager.cpp',
'tickrate_enabler.cpp',
'memutils.cpp',
'maxrate_patches.cpp',
'boomervomitpatch.cpp',
os.path.join(Extension.mms_root, 'core', 'sourcehook', 'sourcehook.cpp'),
os.path.join(Extension.mms_root, 'core', 'sourcehook', 'sourcehook_impl_chookidman.cpp'),
os.path.join(Extension.mms_root, 'core', 'sourcehook', 'sourcehook_impl_cproto.cpp'),
os.path.join(Extension.mms_root, 'core', 'sourcehook', 'sourcehook_hookmangen.cpp'),
os.path.join(Extension.mms_root, 'core', 'sourcehook', 'sourcehook_impl_chookmaninfo.cpp'),
os.path.join(Extension.mms_root, 'core', 'sourcehook', 'sourcehook_impl_cvfnptr.cpp')
]
detour_games = ['l4d', 'l4d2']
###############
# Make sure to edit PackageScript, which copies your files to their appropriate locations
# Simple extensions do not need to modify past this point.
project = Extension.HL2Project(builder, projectName)
#if os.path.isfile(os.path.join(builder.currentSourcePath, 'sdk', 'smsdk_ext.cpp')):
# Use the copy included in the project
# project.sources += [os.path.join('sdk', 'smsdk_ext.cpp')]
#else:
# Use the copy included with SM 1.6 and newer
# project.sources += [os.path.join(Extension.sm_root, 'public', 'smsdk_ext.cpp')]
project.sources += sourceFiles
# mms2.0+
sh_hookmangen_x86 = os.path.join(Extension.mms_root, 'core', 'sourcehook', 'sourcehook_hookmangen_x86.cpp')
if os.path.isfile(sh_hookmangen_x86):
project.sources += [sh_hookmangen_x86]
for sdk_name in Extension.sdks:
if sdk_name == 'episode1':
continue
sdk = Extension.sdks[sdk_name]
binary = Extension.HL2Config(project, projectName + sdk.ext, sdk)
Extension.extensions = builder.Add(project)