View Single Post
06-16-16, 02:41 AM   #7
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,335
In this case, you could set the modules as LoadOnDemand in their ToC as noted before. You can have the core scan for and load them when needed using code like this.
Lua Code:
  1. for i=1,GetNumAddOns() do
  2.     if not IsAddOnLoaded(i) and GetAddOnInfo(i):find("^GS%-") then
  3.         LoadAddOn(i);
  4.     end
  5. end
This scans through all addons and loads the ones starting with GS-.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote