Mercurial > wow > dependencyloader
comparison DependencyLoader/start.lua @ 9:5362e308c3eb
renamed the old DependencyLoader module to DependencyLoader_Bootstrap
renamed DependencyLoader_Core to DependencyLoader
author | mckenziemc |
---|---|
date | Sun, 05 Dec 2010 00:12:57 -0800 |
parents | DependencyLoader_Core/start.lua@9852fcd5e59e |
children | f825ccf94a89 |
comparison
equal
deleted
inserted
replaced
8:930871e163bc | 9:5362e308c3eb |
---|---|
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 |