its all C now

This commit is contained in:
Lysann Tranvouez 2025-10-01 22:08:01 +02:00
parent a63de06aa9
commit 9f1f93d9e4
5 changed files with 589 additions and 622 deletions

View file

@ -758,7 +758,7 @@ mach_error_t detour_attach_ex(detour_func_t* inout_pointer, detour_func_t detour
DETOUR_TRACE(("detours: trampoline=%p, detour=%p\n", trampoline, detour));
// Determine the number of movable target instructions.
uint8_t* src = target;
const uint8_t* src = target;
uint8_t* trampoline_code = trampoline->code;
uint8_t* trampoline_code_limit = trampoline_code + sizeof(trampoline->code);
uint32_t offset_target = 0;