MCPcopy Create free account
hub / github.com/clementgallet/libTAS / hook_patch_addr

Function hook_patch_addr

src/library/hookpatch.cpp:772–779  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

770}
771
772void hook_patch_addr(void *orig_fun, void** tramp_function, void* my_function)
773{
774 if (!write_tramp_function(orig_fun, tramp_function)) {
775 LOG(LL_ERROR, LCF_HOOK, "Aborting hook patch because trampoline generation failed for %p", orig_fun);
776 return;
777 }
778 overwrite_orig_function(orig_fun, my_function);
779}
780
781}

Callers 1

hook_patchFunction · 0.85

Calls 2

write_tramp_functionFunction · 0.85
overwrite_orig_functionFunction · 0.85

Tested by

no test coverage detected