View Single Post
10/29/17, 12:04 PM   #1
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
[outdate] Manifest txt changes: Libraries in subfolders of disabled addons get loaded

Hey Chip,

given the actual addon TweakIt there is a subfolder "KeybindSearch" containing a library (which is designed for the addon TweakIt as it seems) containing a manifet txt and lua code files.

If I disable the addon TweakIt the subolder KeybindSearch is still parsed and the manifest txt file will load the code of file KeybindSearch.lua

This will lead to an error as in there is an access to the global variable Tweakit which wasn't created as the addon TweakIt is disabled in the ingame addon manager.

Is this a wished behaviour? Why should the game load txt files in subfolders of disbaled addons? This makes no sense, and will force us to remove such folders from the addons directory if we wan't to disable them during gameplay (like e..g inside Cyrodiil I disbale the addon and would have to remove the folder from the AddOns folder).

Maybe such libraries should inherit there state from the parent addon folder where they are located, or something like this.

Baertram