mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2026-10-10 20:03:09 +08:00
feat: dynamicly hooking x64 functions from lua at runtime with arbitrary signatures. (#3301)
* feat: dynamicly hooking x64 functions from lua at runtime with arbitrary signatures. * fix missing include * c/c++ include system is a good system
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
# Class: value_wrapper
|
||||
|
||||
Class for wrapping parameters and return value of functions, used mostly by the dynamic_hook system.
|
||||
|
||||
## Functions (2)
|
||||
|
||||
### `get()`
|
||||
|
||||
Get the value currently contained by the wrapper.
|
||||
|
||||
- **Returns:**
|
||||
- `any`: The current value.
|
||||
|
||||
**Example Usage:**
|
||||
```lua
|
||||
any = value_wrapper:get()
|
||||
```
|
||||
|
||||
### `set(new_value)`
|
||||
|
||||
Set the new value contained by the wrapper.
|
||||
|
||||
- **Parameters:**
|
||||
- `new_value` (any): The new value.
|
||||
|
||||
**Example Usage:**
|
||||
```lua
|
||||
value_wrapper:set(new_value)
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user