Mercurial > wow > dependencyloader
diff 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 |
line wrap: on
line diff
--- a/DependencyLoader/start.lua Sat Dec 11 01:54:15 2010 -0800 +++ b/DependencyLoader/start.lua Sat Dec 11 03:32:04 2010 -0800 @@ -5,17 +5,14 @@ local addonName, addonTable = ... -print( string.format([[running %s\start.lua]], addonName) ) +-- prepare output functions +local LibPrint = LibStub("LibPrint-1.0") --- 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. +addonTable.printStream = LibPrint:NewStream("DependencyLoader", "DpLdr", print) +addonTable.debugStream = LibPrint:NewStream("DependencyLoader", "DpLdr", "mcm") --- 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") +function addonTable.print(...) addonTable.printStream:Print(...) end +function addonTable.debug(...) addonTable.debugStream:Print(...) end -addonTable.print = function(...) printStream:Print(...) end -addonTable.debug = function(...) debugStream:Print(...) end +addonTable.debug("loading", addonName)