Hpmason / retour-rs

A cross-platform detour library written in Rust
Other
99 stars 18 forks source link

Expose trampoline() on Generic and Static Detour #39

Closed polloloco closed 9 months ago

polloloco commented 9 months ago

I needed to pass the address of the trampoline function to a C function so I made the trampoline() function public. My previous workaround was using RawDetour but that was annoying and seeing that RawDetour already exposes the trampoline function, I think it would be appropriate for StaticDetour and GenericDetour to have it too

Hpmason commented 9 months ago

Looks good. I'll publish an alpha version on crates.io with this change. With the possibility of #36, or #32 if I have time.