Cleanup GetBuildInfo since we dont need to check versions.

This commit is contained in:
andrew6180
2024-05-21 02:06:53 -07:00
parent 60c4c0c1c1
commit c89fc78cec
11 changed files with 38 additions and 179 deletions
+2 -14
View File
@@ -16,7 +16,7 @@
end
local addonName, Details222 = ...
local version, build, date, tocversion = GetBuildInfo()
local version = GetBuildInfo()
Details.build_counter = 12755
Details.alpha_build_counter = 12755 --if this is higher than the regular counter, use it instead
@@ -40,7 +40,7 @@
Details = Details
local gameVersionPrefix = "VWD" --vanilla, wrath, dragonflight
local gameVersionPrefix = "ASC"
Details.gameVersionPrefix = gameVersionPrefix
@@ -1420,18 +1420,6 @@ do
--]=]
end
if (select(4, GetBuildInfo()) >= 100000) then
local f = CreateFrame("frame")
f:RegisterEvent("ADDON_ACTION_FORBIDDEN")
f:SetScript("OnEvent", function()
local text = StaticPopup1 and StaticPopup1.text and StaticPopup1.text:GetText()
if (text and text:find("Details")) then
--fix false-positive taints that are being attributed to random addons
StaticPopup1.button2:Click()
end
end)
end
local classCacheName = Details222.ClassCache.ByName
local classCacheGUID = Details222.ClassCache.ByGUID