Mercurial > wow > dependencyloader
comparison DependencyLoader/start.lua @ 17:f825ccf94a89
fixed an indexing issue in Addon.lua
moved most of the code in DependencyLoader.lua to Core.lua, and renamed the former to frontend.lua
updated load.xml
rearranged stuff in start.lua
author | mckenziemc |
---|---|
date | Sat, 11 Dec 2010 03:32:04 -0800 |
parents | 5362e308c3eb |
children |
comparison
equal
deleted
inserted
replaced
16:1d8898cd1c82 | 17:f825ccf94a89 |
---|---|
3 | 3 |
4 | 4 |
5 local addonName, addonTable = ... | 5 local addonName, addonTable = ... |
6 | 6 |
7 | 7 |
8 print( string.format([[running %s\start.lua]], addonName) ) | 8 -- prepare output functions |
9 local LibPrint = LibStub("LibPrint-1.0") | |
9 | 10 |
10 -- NOTE: We don't have to check if this module's dependencies | 11 addonTable.printStream = LibPrint:NewStream("DependencyLoader", "DpLdr", print) |
11 -- are available: it lists them normally in its .toc file and | 12 addonTable.debugStream = LibPrint:NewStream("DependencyLoader", "DpLdr", "mcm") |
12 -- the bootstrap module will take care of enabling them first. | |
13 | 13 |
14 -- prepare output functions | 14 function addonTable.print(...) addonTable.printStream:Print(...) end |
15 local lp = LibStub("LibPrint-1.0") | 15 function addonTable.debug(...) addonTable.debugStream:Print(...) end |
16 local printStream = lp:NewStream("DependencyLoader", "DepLoader", "DepLdr", print) | |
17 local debugStream = lp:NewStream("DependencyLoader", "DepLoader", "DepLdr", "mcm") | |
18 | 16 |
19 addonTable.print = function(...) printStream:Print(...) end | |
20 addonTable.debug = function(...) debugStream:Print(...) end | |
21 | 17 |
18 addonTable.debug("loading", addonName) |