view DependencyLoader/start.lua @ 15:a46bf694050c

cleaned up Tree's methods a bit and improved documentation Addon:Exists will now return false for Blizzard addons (needs to be handled better) Addon.lua will now use the raw hooks from the interface module fixed the inverted returns from IsForceLoadAvailable EnableAddOn and LoadAddOn hooks will now skip the extra processing if the addon does not exist or is a Blizzard addon moved the EnableAddOn queing to the interface
author mckenziemc
date Sat, 11 Dec 2010 01:48:39 -0800
parents 5362e308c3eb
children f825ccf94a89
line wrap: on
line source
--	start.lua
--	Initializes components of DependencyLoader


local addonName, addonTable = ...


print( string.format([[running %s\start.lua]], addonName) )

--	NOTE: We don't have to check if this module's dependencies 
--	are available: it lists them normally in its .toc file and 
--	the bootstrap module will take care of enabling them first.

--	prepare output functions
local lp = LibStub("LibPrint-1.0")
local printStream = lp:NewStream("DependencyLoader", "DepLoader", "DepLdr", print)
local debugStream = lp:NewStream("DependencyLoader", "DepLoader", "DepLdr", "mcm")

addonTable.print = function(...) printStream:Print(...) end
addonTable.debug = function(...) debugStream:Print(...) end