Quantcast
WoWInterface - View Single Post - Hooking function when other addons are using local copies of it
View Single Post
08-16-19, 05:56 PM   #4
Kanegasi
A Firelord
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 499
Oh, oops, I misread. I thought you were the one using a local copy. hooksecurefunc propagates local pointers as long as you hook before any localizations happen.

If you are in control of the addon that hooks, look into the UI addon and see where it localizes. It most likely localizes at file load, so you'll have to put a ! in front of your addon's folder name and toc file to make sure you load before the UI addon. If it localizes at PLAYER_LOGIN, you can hook anytime before that, such as file load or ADDON_LOADED.

If it's not your add-on, suggest what I suggested to the authors, preferably getting the UI addon author to not localize.

Last edited by Kanegasi : 08-16-19 at 06:00 PM.
  Reply With Quote