mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-14 17:20:50 +00:00
use C_AddOns.GetAddOnName
This commit is contained in:
@@ -95,7 +95,7 @@ end
|
|||||||
local tocs = { "", "-master", "-tbc", "-wotlk" }
|
local tocs = { "", "-master", "-tbc", "-wotlk" }
|
||||||
for _, name in pairs(tocs) do
|
for _, name in pairs(tocs) do
|
||||||
local current = string.format("pfUI%s", name)
|
local current = string.format("pfUI%s", name)
|
||||||
local _, title = GetAddOnInfo(current)
|
local title = C_AddOns.GetAddOnName(current)
|
||||||
if title then
|
if title then
|
||||||
pfUI.name = current
|
pfUI.name = current
|
||||||
pfUI.path = "Interface\\AddOns\\" .. current
|
pfUI.path = "Interface\\AddOns\\" .. current
|
||||||
|
|||||||
Reference in New Issue
Block a user