comparison DependencyLoader_Core/start.lua @ 0:9852fcd5e59e

initial import
author mckenziemc
date Tue, 30 Nov 2010 16:13:04 -0800
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:9852fcd5e59e
1 -- start.lua
2 -- Initializes components of DependencyLoader
3
4
5 local addonName, addonTable = ...
6
7
8 print( string.format([[running %s\start.lua]], addonName) )
9
10 -- NOTE: We don't have to check if this module's dependencies
11 -- are available: it lists them normally in its .toc file and
12 -- the bootstrap module will take care of enabling them first.
13
14 -- prepare output functions
15 local lp = LibStub("LibPrint-1.0")
16 local printStream = lp:NewStream("DependencyLoader", "DepLoader", "DepLdr", print)
17 local debugStream = lp:NewStream("DependencyLoader", "DepLoader", "DepLdr", "mcm")
18
19 addonTable.print = function(...) printStream:Print(...) end
20 addonTable.debug = function(...) debugStream:Print(...) end
21