WoW BlueTracker Home | RSS | News | Contact
Recent | Search | Archive | CS Posts
Poster: Legorol at 9/7/2005 8:02:55 PM PDT
Subject: Slouken: "loadable" return value is useless?
   The new API:
name, title, notes, enabled, loadable, reason, security = GetAddOnInfo(value);

From my experimentation on the 1.7 test server, my conclusions are that if enabled is 1 then so is loadable, and if enabled is 0 then so is loadable, always! I have tested this under a variety of conditions, for both normal AddOns and on-demand loading ones. There is no difference between the two return values whatsoever. I have also tried enabling/disabling these AddOns from the character select screen, and using the new EnableAddOn/DisableAddOn functions as well. In all cases, the above behaviour is observed too.

Is there any scenario under which the enabled and loadable values are different? If so, I couldn't find one yet.

Incidentally, as a consequence of this, I have discovered something interesting about EnableAddOn(): if a non-ondemand loading AddOn starts disabled, and you enable it using EnableAddOn(), you can then use LoadAddOn() to load it, even it's a normal (non-ondemand loading) AddOn! I am not sure this is intended.
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=211918&p=#post211918
 
Poster: slouken at 9/7/2005 8:14:16 PM PDT
Subject: Re: Slouken: "loadable" return value is useless?
  

Q u o t e:

Is there any scenario under which the enabled and loadable values are different? If so, I couldn't find one yet.



Iriel's post is correct. You need to introduce other problems to see loadable being false.


Q u o t e:

Incidentally, as a consequence of this, I have discovered something interesting about EnableAddOn(): if a non-ondemand loading AddOn starts disabled, and you enable it using EnableAddOn(), you can then use LoadAddOn() to load it, even it's a normal (non-ondemand loading) AddOn! I am not sure this is intended.


Interesting. No, it's not intended. I'm seriously considering removing the EnableAddOn/DisableAddOn calls, since it's potentially a real problem for addons to programmatically enable addons which the end user left disabled.
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=211918&p=#post211931
Poster: slouken at 9/7/2005 9:38:19 PM PDT
Subject: Re: Slouken: "loadable" return value is useless?
   Yep, I'm reserving my opinion until there are problems. It may be fine as-is.
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=211918&p=#post211971

View all recent official Blue Posts

WoW Blue Tracker: Archiving World of Warcraft Blue Posts
since March 2005
Home | RSS | News | Contact
Recent | Search | Archive | CS Posts
 

Why Ads?