Commit Graph

14 Commits

Author SHA1 Message Date
A1mDev
220cc71c96 Fixed a compilation error and refactored code. 2025-10-25 03:02:27 +07:00
A1mDev
f9d175c75e Remove duplicate code, move it to a separate function 2025-10-25 02:07:47 +07:00
A1mDev
5da5325a10 Allow working with the parameter 'this', which is the class gamerules 2024-12-31 01:20:50 +07:00
A1mDev
6eb540a761 Enable check for calling convention 2024-12-31 00:51:23 +07:00
A1mDev
88024a71fc Allow working with the parameter "this", which is a class CBaseEntity 2024-11-19 11:06:34 +07:00
A1mDev
945499bd02 Update natives.cpp 2024-11-19 09:34:27 +07:00
A1mDev
358eef1e51 Non-working code commented out 2024-11-11 13:01:55 +07:00
A1mDev
2d008c1c58 Update natives.cpp 2024-11-11 11:34:54 +07:00
Benoist
4e15a92984
Add x64 Windows support to DHooks (#2154)
* Add x64 Windows support

* undo changes of hook.cpp

* undo changes of hook.h

* undo changes of extension.cpp

* undo changes of listeners.cpp

* undo changes of signatures.cpp

* fix dhooks on x86

* Fix-up dhooks buildscript

---------

Co-authored-by: Kenzzer <kenzzer@users.noreply.github.com>
2024-09-10 23:26:30 +00:00
peace-maker
9121472061 DHooks: Error on argument passflags for detours (#1773)
The passflags are only supported by SourceHook for virtual hooks and are ignored for detours with DynamicDetours. This caused confusion, so throw an error when trying to set e.g. the DHookPass_ByRef flag on detour arguments.
2022-06-24 10:00:02 -04:00
peace-maker
54fd778830 DHooks: Fix changing of byref vector parameters (#1772)
We always created a new vector object instead of changing the passed in vector directly. This works for the function being called using our changed values - but the caller doesn't see the changed values if it's passing a vector by reference.

Only create a new vector if there isn't one being passed in and set the values directly in the passed in vector otherwise.
2022-06-24 10:00:01 -04:00
peace-maker
39d604ae6c
DHooks: Allow setting CBaseEntity* param to NULL #1751 (#1754)
* DHooks: Allow setting CBaseEntity* param to NULL #1751

The param had to be a valid entity and wasn't allowed to be set to NULL. Behave similar to SetReturn which maps INVALID_ENT_REFERENCE (or -1) to NULL.

* Update include documentation
2022-04-20 15:32:37 +02:00
Peace-Maker
581068c09b Add copyright headers 2021-11-17 13:17:39 +01:00
Peace-Maker
0f5f1a814e Import DHooks + Dynamic Detouring
This is the latest DHooks version from 1314f2d1b4
2021-11-17 13:17:39 +01:00