ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   Hooking private function (https://www.esoui.com/forums/showthread.php?t=9019)

dps_master 03/04/20 05:38 PM

Hooking private function
 
Hi. I want to fire my event before or after private function (like OnSlotDown). Is it possible?

I tried ZO_PreHook and SecurePostHook and got errors about accessing private function from insecure code.

Dolgubon 03/04/20 09:06 PM

It is not possible. It is possible to hook a function that calls it later down the line. (last I checked, anyway)

dps_master 03/04/20 11:22 PM

Oh that is sad.
Quote:

to hook a function that calls it later down the line
That is a good idea but I can't use it because private functions I need are called directly from key bindings. Thank you.

Baertram 03/05/20 04:44 AM

If they are all private and your code makes it insecure ZOs does not want you do get in there in any way and you seemt o need to accept it is not possible (this way).


All times are GMT -6. The time now is 05:16 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI