Fix |thiscall| on linux for functions with arguments

The previous fix messed up parameter getters and setters.
This commit is contained in:
Peace-Maker
2018-06-02 13:36:52 +02:00
parent 0d24200a49
commit 9da7e666f6
5 changed files with 81 additions and 15 deletions
+5 -1
View File
@@ -270,9 +270,13 @@ program.sources += [
os.path.join('DynamicHooks', 'utilities.cpp'),
os.path.join('DynamicHooks', 'conventions', 'x86MsCdecl.cpp'),
os.path.join('DynamicHooks', 'conventions', 'x86MsStdcall.cpp'),
os.path.join('DynamicHooks', 'conventions', 'x86MsThiscall.cpp'),
]
if builder.target_platform == 'windows':
program.sources += [os.path.join('DynamicHooks', 'conventions', 'x86MsThiscall.cpp')]
else:
program.sources += [os.path.join('DynamicHooks', 'conventions', 'x86GccThiscall.cpp')]
program.sources += [os.path.join(DHooks.sm_root, 'public', 'smsdk_ext.cpp')]
if os.path.isfile(os.path.join(DHooks.sm_root, 'sourcepawn', 'vm', 'x86', 'assembler-x86.cpp')):