Merge pull request #358 from Flamanis/master

Move the LibOpenRaid failed loading message below the CanLoad check
This commit is contained in:
Tercio Jose
2022-09-27 13:39:26 -03:00
committed by GitHub
2 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ if (WOW_PROJECT_ID ~= WOW_PROJECT_MAINLINE and not isExpansion_Dragonflight()) t
end
local major = "LibOpenRaid-1.0"
local CONST_LIB_VERSION = 54
local CONST_LIB_VERSION = 55
LIB_OPEN_RAID_CAN_LOAD = false
--declae the library within the LibStub
+6 -5
View File
@@ -1,6 +1,11 @@
--data which main need maintenance over time
if (not LIB_OPEN_RAID_CAN_LOAD) then
return
end
--alert the user that something went wrong
C_Timer.After(10, function()
if (not LIB_OPEN_RAID_DATABASE_LOADED) then
@@ -8,10 +13,6 @@ C_Timer.After(10, function()
end
end)
if (not LIB_OPEN_RAID_CAN_LOAD) then
return
end
local versionString, revision, launchDate, gameVersion = GetBuildInfo()
local isExpansion_Dragonflight = function()
@@ -829,4 +830,4 @@ LIB_OPEN_RAID_SPELL_DEFAULT_IDS = {
}
--need to add mass dispell (32375)
LIB_OPEN_RAID_DATABASE_LOADED = true
LIB_OPEN_RAID_DATABASE_LOADED = true