brl.hook tweak

BlitzMax Forums/BlitzMax Module Tweaks/brl.hook tweak

fredborg(Posted 2006) [#1]
Hi,

Here's a tweak for BRL.Hook, which enables you to remove individual hooks even when they use the same function as other hooks.

Use it like this:
Local myhook:Object = AddHook(blabla...)
RemoveHookObject(myhook)
And here's the tweaked code: