/trunk/MorgDKP/libs/AceAddon-2.0
License: LGPL v2.1 |
]] |
local WotLK = select(4,GetBuildInfo()) >= 30000 |
local MAJOR_VERSION = "AceAddon-2.0" |
local MINOR_VERSION = "$Revision$" |
AceAddon:RegisterEvent("ADDON_LOADED", "ADDON_LOADED") |
local names = {} |
for i = 1, GetNumAddOns() do |
if IsAddOnLoaded(i) then names[GetAddOnInfo(i)] = true end |
if WotLK then |
if not IsAddOnLoaded(i) then |
local name, _,_, enabled, loadable = GetAddOnInfo(i) |
if enabled and loadable then names[name] = true end |
end |
else |
if IsAddOnLoaded(i) then names[GetAddOnInfo(i)] = true end |
end |
end |
self.possibleNames = names |
table.insert(AceAddon.nextAddon, self) |