Skip to content

Commit

Permalink
Merge pull request #358 from Flamanis/master
Browse files Browse the repository at this point in the history
Move the LibOpenRaid failed loading message below the CanLoad check
  • Loading branch information
Tercioo authored Sep 27, 2022
2 parents e10d009 + 44ee86b commit 0b9b24a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Libs/LibOpenRaid/LibOpenRaid.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 6 additions & 5 deletions Libs/LibOpenRaid/ThingsToMantain.lua
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@

--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
print("Details! > LibOpenRaid failed to load, check BugSack for errors and report.")
end
end)

if (not LIB_OPEN_RAID_CAN_LOAD) then
return
end

local versionString, revision, launchDate, gameVersion = GetBuildInfo()

local isExpansion_Dragonflight = function()
Expand Down Expand Up @@ -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

0 comments on commit 0b9b24a

Please sign in to comment.