File tree 1 file changed +8
-11
lines changed
1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -223,20 +223,16 @@ function AMdataManager:AddAddonByUniqueName(sUniqueName)
223
223
return oThisAddon
224
224
end
225
225
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 ()
230
229
for k ,v in pairs (tAddonXML ) do
231
230
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 )
234
233
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 )
240
236
end
241
237
end
242
238
end
262
258
263
259
264
260
_G .AddonsManagerStuff .AMdataManager = AMdataManager
261
+
You can’t perform that action at this time.
0 commit comments