Maybe convention isn't the right word, but was curious what the easiest or "standard" way to hook functions is when writing full code mods. In the past I've just done simple execute-before or execute-after's, or for simple mid function hooks I've just been writing the patch directly in assembly but that would be a major pain in the ass for more complicated behavior.
In the case of more complicated function hooks, would the best way be to just essentially copy the whole function (maybe using the decompiler-generated pseudocode as a base?) and then editing the necessary components, or is there a better way to do it?
Don't really have much experience in function hooking in this capacity so any advice would be appreciated :)
