View Single Post
10-04-17, 12:59 PM   #2
MunkDev
A Scalebane Royal Guard
 
MunkDev's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2015
Posts: 431
Lua Code:
  1. obj.Show = noop

This line that replaces the Show function for each of those objects also taints every one of them. Anytime :Show() is called for one of those objects from signed code, the execution path will get tainted and break if it hits a protected function call afterwards. This happens because the noop function is not from signed code.

A better approach to forcing them to stay hidden would be:
Lua Code:
  1. hooksecurefunc(obj, 'Show', obj.Hide)

Instead of replacing the Show function, this line will make sure it immediately calls :Hide() on the object any time :Show() is called on it.
__________________

Last edited by MunkDev : 10-04-17 at 01:02 PM.
  Reply With Quote