WoW BlueTracker Home | RSS | News | Contact
Recent | Search | Archive | CS Posts
Poster: Ru at 9/17/2005 4:02:40 PM PDT
Subject: API: Can we check for LoadOnDemand?
   The following entry in .toc denotes for a module that it supports LoadOnDemand:

## LoadOnDemand: 1

Is there any way to check if this is true for a module? The GetAddOnInfo() function returns a "loadable" value, but its return value seems to be based on Enable/Disable -- which we can retrieve with the "enabled" retval.

local name, title, notes, enabled, loadable, reason, security = GetAddOnInfo();

Please assist.

Thanks,
Ru
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=221644&p=#post221644
 
Poster: slouken at 9/19/2005 1:03:34 PM PDT
Subject: Re: API: Can we check for LoadOnDemand?
   In 1.8, you will no longer be able to load non-on-demand-load addons by leaving them disabled and then enabling and loading them in-game.

This means that if you try to get info on an addon which is disabled and not set up for on-demand loading, it will return not loadable, with the reason set to "NOT_DEMAND_LOADED"

If you try to get info an an addon which is already loaded, it will return info as loadable (since you can safely call LoadAddOn() on it with no problems) If you need to distinguish between addons which are loadable and not loaded, and those which are loadable and already loaded, use the existing IsAddOnLoaded() function.

I think this takes care of the issue raised in the 1.7 sticky, and gives you the information you need, right?

[ post edited by slouken ]

  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=221644&p=#post223050
Poster: slouken at 9/22/2005 11:43:22 AM PDT
Subject: Re: API: Can we check for LoadOnDemand?
  

Q u o t e:
The following entry in .toc denotes for a module that it supports LoadOnDemand:

## LoadOnDemand: 1

Is there any way to check if this is true for a module?


In 1.8, you will be able to call IsAddOnLoadOnDemand(name or index)

The changes I mentioned earlier in this thread still hold true.
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=221644&p=#post225477

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?