From dcac104de04661000771769b7479a41bd6cc0e74 Mon Sep 17 00:00:00 2001 From: Artemis Date: Tue, 2 May 2023 21:24:22 +0100 Subject: [PATCH] GetAddOnMetadata fix for 10.1.0 --- WagoAnalytics.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/WagoAnalytics.lua b/WagoAnalytics.lua index ac2b63b..a173059 100755 --- a/WagoAnalytics.lua +++ b/WagoAnalytics.lua @@ -36,8 +36,9 @@ local isRetail = WOW_PROJECT_ID == (WOW_PROJECT_MAINLINE or 1) do local tostring, pairs, ipairs, debugstack, debuglocals, tIndexOf, tinsert, match = tostring, pairs, ipairs, debugstack, debuglocals, tIndexOf, table.insert, string.match - local GetLocale, UnitFactionGroup, GetCurrentRegion, UnitAffectingCombat, InCombatLockdown, GetNumAddOns, GetAddOnInfo, GetAddOnMetadata, CreateFrame, UnitClass, UnitLevel, UnitRace, GetSpecialization, GetSpecializationInfo = - GetLocale, UnitFactionGroup, GetCurrentRegion, UnitAffectingCombat, InCombatLockdown, GetNumAddOns, GetAddOnInfo, GetAddOnMetadata, CreateFrame, UnitClass, UnitLevel, UnitRace, GetSpecialization, GetSpecializationInfo + local GetLocale, UnitFactionGroup, GetCurrentRegion, UnitAffectingCombat, InCombatLockdown, GetNumAddOns, GetAddOnInfo, CreateFrame, UnitClass, UnitLevel, UnitRace, GetSpecialization, GetSpecializationInfo = + GetLocale, UnitFactionGroup, GetCurrentRegion, UnitAffectingCombat, InCombatLockdown, GetNumAddOns, GetAddOnInfo, CreateFrame, UnitClass, UnitLevel, UnitRace, GetSpecialization, GetSpecializationInfo + local GetAddOnMetadata = C_AddOns and C_AddOns.GetAddOnMetadata or GetAddOnMetadata -- isSimple 3 state: True is simple, False is pcall, Nil is not simple local function handleError(errorMessage, isSimple, errorObj)