Commit Graph

9 Commits

Author SHA1 Message Date
Peace-Maker
9d43111829 Don't call sourcepawn detour callbacks from threads other than the main thread
The SourcePawn VM isn't threadsafe.
2018-05-02 13:37:41 +02:00
Peace-Maker
aa3018a27d Add support to define function signatures in gamedata
A "Functions" section is parsed in gamedata files that allow you to define the signature of functions including metadata like the calling convention and specifying the register an argument is passed in.
A new native DHookCreateFromConf can be used to setup a hook or detour from one of that function sections in the "Functions" section.
2018-01-25 17:18:30 +01:00
Peace-Maker
63ccb7448f Cleanup detour structures properly on unload 2016-12-11 22:18:53 -07: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
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
Ross Bemrose
7c8be8a2b4 Fix a crash if SDKHooks was unloaded before us. Also, stop working if any of
our dependencies are unloaded.
Note: Bintools was added to the list of dependencies checked.
2014-06-04 15:46:31 -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
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