mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-05 11:44:53 +01:00
Updated hooks.
This commit is contained in:
parent
6328b59b0b
commit
631bcf9edf
6 changed files with 40 additions and 41 deletions
|
|
@ -36,5 +36,6 @@ void Base_Hook::UnhookAll()
|
|||
|
||||
void Base_Hook::HookFuncs(std::pair<void**, void*> hook)
|
||||
{
|
||||
DetourAttach(hook.first, hook.second);
|
||||
if( DetourAttach(hook.first, hook.second) == 0 )
|
||||
_hooked_funcs.emplace_back(hook);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue