BotoX
0e6936a7ee
Revert "Fix crash"
...
This reverts commit 67b3b54ae1
.
2019-09-25 18:57:27 +02:00
Peace-Maker
a6b21e56fa
Merge upstream master
2019-08-19 16:53:55 +02:00
Peace-Maker
88451023fb
Fix changing of charptr and vectorptr returns and parameters
...
The new buffer/vector was freed before the old function was called with the new parameters
or the return value could be used by the called. This caused undefined behavior which seemed
to be fine before, where free didn't change the user-payload. free does change the user data now,
causing the changed values to be garbage.
Wait until the next frame before deleting the newly allocated buffers/vectors, so the original code had a chance
to use the live pointers. AddFrameAction might be a bad choice if our hook happens before the game ticks, but
we can tackle that problem when it happens ;)
2019-08-03 18:26:53 +02:00
Drifter
2972e0abc5
Fix incorrect casting of return
2019-05-24 05:06:33 -04:00
Peace-Maker
70eee8482a
Fix compilation against SourceMod 1.10
...
MacroAssembler base is now in the |sp| namespace.
2019-05-06 18:29:40 +02:00
Drifter
e54dd120bc
Fix setting return vector.
2019-04-21 06:00:01 -04:00
Peace-Maker
076d40510c
Fix crash when trying to decode NULL this pointer
...
When the this pointer is set to ThisPointer_CBaseEntity and the address is null, just return INVALID_ENT_REFERENCE instead of trying to access the pointer.
2018-10-05 14:23:38 +02:00
Peace-Maker
43f275889e
Merge upstream master
2018-04-19 02:09:01 +02:00
Drifter
67b3b54ae1
Fix crash
2018-01-29 12:36:43 -05:00
Drifter
cd55a5026e
Add support for setting callback when hooking instead of on create only.
2018-01-27 10:08:44 -05:00
Drifter
a26316ba68
Fix not ending context.
2016-12-20 09:48:26 -05: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
928570b8ec
Only set each param to NULL.
2016-08-31 11:45:47 -04: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
d634cb9522
Replace thrownativeerror with blamepluginerror
2016-06-26 10:59:32 -04:00
Dr!fter
957228443b
Fix not being able to block void functions.
2015-06-05 08:44:28 -04:00
Dr!fter
5b0d741271
Fix memory leak.
2015-05-16 09:49:40 -04:00
Dr!fter
c04ce19b7c
Fix pointer returns being incorrectly set and freed.
2015-05-14 12:03:48 -04:00
Dr!fter
4cbb49b141
Fix more build issues
2014-08-19 13:30:12 -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
9574a647af
Fix getting this ptr always assuming iface was a CBaseEntity.
2014-05-29 18:10:17 -04:00
Dr!fter
c3fcdbb7db
More linux fixes.
2013-08-29 15:18:43 -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
a916cdb66b
More return struct fixes.
2013-08-26 17:44:18 -04:00
Dr!fter
0a051ab32e
Fix string_t return hook, Fix GetHandleIfValidOrError checking only for g_HookSetupHandle
2013-08-25 22:45:42 -04:00
Dr!fter
6e40653db6
Add support for string returns (not fully tested)
2013-08-22 16:14:32 -04:00
Dr!fter
cf6d35365e
Add missing breaks.
2013-08-21 22:37:54 -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
07f7869d10
Really fix return values now... Error out when overriding return but not given one.
2013-08-21 13:36:23 -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