openplanet-nl / issues

Issue tracker for Openplanet.
10 stars 0 forks source link

Add an argument to Dev::Hook() to specify which registers it should preserve #21

Closed Miltant closed 2 years ago

Miltant commented 2 years ago

As of now, only a bunch of registers are backed up and restored by the instructions wrapping a hook's function call. It practically limits what addresses can be hooked, and it makes writing non-bugged angelscript hook function quite hard. So I would greatly appreciate some way to tell the Dev api which registers I would like it to preserve for me, as I understand that allocating space for all registers would be too expensive to be a default behavior.

codecat commented 2 years ago

Specifically, the registers that prompted this issue are xmm registers (which are large)