Quote:
Originally Posted by BAILOPAN
generic interop and sourcepawn don't mix. the type system is too weak to do structure/class or pointer interop in any sane way. this is why bug 2616 is basically WONTFIX for now, despite SourceHook being able to generate hooks dynamically.
you're better off finding functions which you need to detour. if none need interop, then exposing dynamic API to scripts can win. otherwise, it's very complicated to get right.
|
Ok fair enough BAIL. It's unfortunate that we have to resort to using x86, but I don't think there is any other way to detour. I couldn't manage to find a single detour library that was "dynamic" in this sense, so I took on the task of writing my own.
On a side note: If you've have any suggestions at all feel free to tell me.
@Tsunami:
Anyway, this was really a pet project of mine, and I was surprised I could even get anywhere with it. If anyone wants to use it in an extension, you are free to do so. I'd love to hear what you do with it.
The only problem I've got right now is I haven't even begun to test this on Linux yet
Thanks for the comments so far guys.
EDIT: I've been reading through
bug 2616. You've got some great discussion going on there BAIL. It shows that I need to put more thought into how I'm engineering my library.