Thread Tools Display Modes
03/04/20, 05:38 PM   #1
dps_master
Join Date: Mar 2020
Posts: 2
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.
  Reply With Quote
03/04/20, 09:06 PM   #2
Dolgubon
 
Dolgubon's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 408
It is not possible. It is possible to hook a function that calls it later down the line. (last I checked, anyway)
  Reply With Quote
03/04/20, 11:22 PM   #3
dps_master
Join Date: Mar 2020
Posts: 2
Oh that is sad.
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.
  Reply With Quote
03/05/20, 04:44 AM   #4
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
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).
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Hooking private function

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off