annotate DependencyLoader/start.lua @ 12:b230b94d4487

fixed Addon.lua to use the unhooked EnableAddOn (still needs to be changed to grab from the interface) improved the error message when creating an Addon object on a Blizzard addon (will add direct support later) implemented the hooks on EnableAddOn and LoadAddOn rearranged functions inside Tree.lua, with some edits copied OptDeps from main module to the bootstrap module, to delegate loading to the client when possible
author mckenziemc
date Fri, 10 Dec 2010 00:21:17 -0800
parents 5362e308c3eb
children f825ccf94a89
rev   line source
mckenziemc@0 1 -- start.lua
mckenziemc@0 2 -- Initializes components of DependencyLoader
mckenziemc@0 3
mckenziemc@0 4
mckenziemc@0 5 local addonName, addonTable = ...
mckenziemc@0 6
mckenziemc@0 7
mckenziemc@0 8 print( string.format([[running %s\start.lua]], addonName) )
mckenziemc@0 9
mckenziemc@0 10 -- NOTE: We don't have to check if this module's dependencies
mckenziemc@0 11 -- are available: it lists them normally in its .toc file and
mckenziemc@0 12 -- the bootstrap module will take care of enabling them first.
mckenziemc@0 13
mckenziemc@0 14 -- prepare output functions
mckenziemc@0 15 local lp = LibStub("LibPrint-1.0")
mckenziemc@0 16 local printStream = lp:NewStream("DependencyLoader", "DepLoader", "DepLdr", print)
mckenziemc@0 17 local debugStream = lp:NewStream("DependencyLoader", "DepLoader", "DepLdr", "mcm")
mckenziemc@0 18
mckenziemc@0 19 addonTable.print = function(...) printStream:Print(...) end
mckenziemc@0 20 addonTable.debug = function(...) debugStream:Print(...) end
mckenziemc@0 21