Skip to content

Commit 1785c53

Browse files
committedJun 22, 2014
Fix GetAddons to work again.. broke accidentally prior to push.
1 parent bdab46a commit 1785c53

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed
 

‎AMdataManager.lua

+8-11
Original file line numberDiff line numberDiff line change
@@ -223,20 +223,16 @@ function AMdataManager:AddAddonByUniqueName(sUniqueName)
223223
return oThisAddon
224224
end
225225

226-
local tAddonList = {}
227-
function GetAddons()
228-
local strDirPrev = string.match(Apollo.GetAssetFolder(), "(.-)[\\/][Aa][Dd][Dd][Oo][Nn][Ss]")
229-
local tAddonXML = XmlDoc.CreateFromFile(strDirPrev.."\\Addons.xml"):ToTable()
226+
function AMdataManager:GetAddons()
227+
local strWildstarDir = string.match(Apollo.GetAssetFolder(), "(.-)[\\/][Aa][Dd][Dd][Oo][Nn][Ss]")
228+
local tAddonXML = XmlDoc.CreateFromFile(strWildstarDir.."\\Addons.xml"):ToTable()
230229
for k,v in pairs(tAddonXML) do
231230
if v.__XmlNode == "Addon" then
232-
if v.Carbine == 1 then
233-
table.insert(tAddonList, v.Folder)
231+
if v.Carbine == "1" then
232+
table.insert(self.tAddonsListTmp, v.Folder)
234233
else
235-
local tSubToc = XmlDoc.CreateFromFile(strDirPrev.."\\Addons\\"..v.Folder.."\\toc.xml")
236-
if tSubToc then
237-
local tTocTable = tSubToc:ToTable()
238-
table.insert(tAddonList, tSubToc.Name)
239-
end
234+
local tSubToc = XmlDoc.CreateFromFile(strWildstarDir.."\\Addons\\" ..v.Folder.."\\toc.xml"):ToTable()
235+
table.insert(self.tAddonsListTmp, tSubToc.Name)
240236
end
241237
end
242238
end
@@ -262,3 +258,4 @@ end
262258

263259

264260
_G.AddonsManagerStuff.AMdataManager = AMdataManager
261+

0 commit comments

Comments
 (0)