Thread Tools Display Modes
Prev Previous Post   Next Post Next
11-22-18, 07:52 AM   #1
Ethly
A Fallenroot Satyr
Join Date: Mar 2018
Posts: 23
How to determine if it's safe to overwrite global Blizzard function

I want to rewrite global functions LocalizeFrames and CombatFeedback_OnCombatEvent. I can do just that:
Code:
function LocalizeFrames()
	...
end

function CombatFeedback_OnCombatEvent(self, event, flags, amount, type)
	...
end
And from quick testing it seems to work. However I've heard about concept of tainting. I can achieve the same result with hooksecurefunc, but it causes unnecessary code to run (I'll overwrite Blizzard code, but it'll be called anyway). I don't know exactly how tainting works. So the question is: is it safe to overwrite those functions and how can I tell in general, which functions are safe to overwrite and which functions must be hooked?
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » How to determine if it's safe to overwrite global Blizzard function


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