mirror of
https://github.com/alicealys/t5-gsc-utils.git
synced 2025-10-26 23:36:56 +00:00
Add some functions
This commit is contained in:
@@ -102,6 +102,12 @@ namespace utils::hook
|
||||
return reinterpret_cast<T>(data + offset + 4);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
T extract(const size_t address)
|
||||
{
|
||||
return extract<T>(reinterpret_cast<void*>(address));
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
static void set(void* place, T value)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user