8000 Tags · vycdev/MemHack · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Tags: vycdev/MemHack

Tags

v1.0.1

Toggle v1.0.1's commit message
Refactor WriteAddressValue to simplify type handling

The code changes in the `WriteAddressValue` method within the `MemHackLib.PlatformImplementations` namespace in `MemHackLin.cs` remove the conversion of the `value` parameter to a byte array. Instead, the updated implementation directly assigns the `value` to the `data` variable based on its type. Specifically, it checks if `value` is of type `int`, `long`, `short`, or `byte` and assigns `data` as a new `nint` with the corresponding value. If `value` is of an unsupported type, it returns an error message "Unsupported value type." This refactor simplifies the process and eliminates the need for byte array conversion and pinning.

v1.0.0

Toggle v1.0.0's commit message
app logo

0