instead of planting a longjmp at the fn head, make a shortjmp to a launch trampo this helps with shortjmps that can be in the fn and will break when relocated. They are very unlikely to occur within the first 5 bytes (jmp rel32) but can happen in the first 10 or so (longjmp) fixes csgo-vk-fix on latest main with release building on gcc / clang |
||
|---|---|---|
| .. | ||
| HookSystem.cpp | ||
| HookSystem.hpp | ||
| PluginAPI.cpp | ||
| PluginAPI.hpp | ||
| PluginSystem.cpp | ||
| PluginSystem.hpp | ||