Commit Graph

26 Commits

Author SHA1 Message Date
Peace-Maker
891fa5352e Add support for the "fastcall" calling convention
Callee cleans the stack and first two arguments are passed in registers ecx and edx.
You could emulate this by choosing stdcall and setting the custom_registers on the arguments manually, but this is easier.
2019-06-20 02:14:07 +02:00
Peace-Maker
43f275889e Merge upstream master 2018-04-19 02:09:01 +02:00
Drifter
cd55a5026e Add support for setting callback when hooking instead of on create only. 2018-01-27 10:08:44 -05:00
Peace-Maker
1b9fa3743f Add support for custom calling convention passing arguments in registers
If the compiler decided to pass an argument in a register on an internal function instead of pushing it on the stack to save time, allow us to specify the register the parameter is going to be in.

DHookAddParam received another parameter to set the register.
2018-01-23 03:15:03 +01:00
Peace-Maker
b6382f1c27 Fix compilation 2018-01-21 13:48:50 +01:00
Peace-Maker
2e52ab24b7 First draft of dynamic detours using Ayuto's DynamicHooks library
https://github.com/Ayuto/DynamicHooks
2016-12-11 22:02:10 -07:00
Dr!fter
1fe19fc823 Remove functions now in util and fix more object related issues. 2016-08-30 16:40:24 -04:00
Dr!fter
71b840e70a Fix overriding functions with objects crashing. 2016-08-30 10:58:04 -04:00
Dr!fter
9d09a52e99 Switch to amtl vectors. Change how hooks are checked for removal on frame action. 2016-08-27 10:20:38 -04:00
Dr!fter
b3fb8cc8de Delay freeing hook manager one frame just in case the entity is deleted while the hook is still on the stack. 2016-08-26 19:26:52 -04:00
Dr!fter
97c3cdf304 Change Vector classname to SDKVector. 2016-06-26 13:00:27 -04:00
Dr!fter
c04ce19b7c Fix pointer returns being incorrectly set and freed. 2015-05-14 12:03:48 -04:00
Dr!fter
0f64a45a2b Remove the need for SDK's. Update AMBuild scripts to AMBuild2. Fix shutdown crash. Update gamedata for testing. General code fixups. 2014-08-19 13:14:48 -04:00
Dr!fter
8e4c7d7274 Remove the ability to set string_t return values. 2014-02-13 20:07:26 -05:00
Dr!fter
c3fcdbb7db More linux fixes. 2013-08-29 15:18:43 -04:00
Dr!fter
b2288d7333 More linux changes. 2013-08-28 22:58:42 -04:00
Dr!fter
394f21e1a4 Update some changes for linux. Remove unused file. 2013-08-28 15:22:15 -04:00
Dr!fter
c5b8d2fecb More return struct fixes. Add Vector and Vector * return support. Change vfunc_call to use template. Update makefile 2013-08-28 14:20:20 -04:00
Dr!fter
e06b52c1ec Add more natives! Add support for reading Objects. Fix more boogs and update include 2013-08-26 22:19:05 -04:00
Dr!fter
6e40653db6 Add support for string returns (not fully tested) 2013-08-22 16:14:32 -04:00
Dr!fter
6a47b6f1ef Add more natives, Fix using deprecated functions, Add support for float returns, Fix more callback return stuff. 2013-08-21 22:18:52 -04:00
Dr!fter
d655e31e95 Fix returns 2013-08-20 22:21:29 -04:00
Dr!fter
ae3ca716ce Update - working 2013-08-20 20:18:50 -04:00
Dr!fter
61c887f042 Update 2013-08-19 22:33:44 -04:00
Dr!fter
2f38de616e Update code add natives and listeners 2013-08-19 11:07:25 -04:00
Dr!fter
f9af5e9017 Intial testing 2013-08-15 23:53:38 -04:00