mirror of
https://github.com/JezuzLizard/T4SP-Server-Plugin.git
synced 2025-07-06 19:21:55 +00:00
Add scheduler, add support for GSC method adding, command adding.
Some cleanup. Add exception handler.
This commit is contained in:
@ -244,4 +244,9 @@ namespace utils::hook
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
void* get_displacement_addr(int original)
|
||||
{
|
||||
return reinterpret_cast<void*>(*reinterpret_cast<int*>(original + 1) + original + 5);
|
||||
}
|
||||
}
|
@ -125,6 +125,8 @@ namespace utils::hook
|
||||
|
||||
void* assemble(const std::function<void(assembler&)>& asm_function);
|
||||
|
||||
void* get_displacement_addr(int original);
|
||||
|
||||
template <typename T>
|
||||
T extract(void* address)
|
||||
{
|
||||
|
Reference in New Issue
Block a user