Load Details Data Storage.
This commit is contained in:
@@ -732,8 +732,6 @@ function _detalhes.storage:OpenRaidStorage()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
do return end
|
|
||||||
|
|
||||||
--get the storage table
|
--get the storage table
|
||||||
local db = DetailsDataStorage
|
local db = DetailsDataStorage
|
||||||
|
|
||||||
@@ -1420,8 +1418,6 @@ local createStorageTables = function()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function _detalhes.ScheduleLoadStorage()
|
function _detalhes.ScheduleLoadStorage()
|
||||||
do return end
|
|
||||||
|
|
||||||
if (InCombatLockdown() or UnitAffectingCombat("player")) then
|
if (InCombatLockdown() or UnitAffectingCombat("player")) then
|
||||||
if (_detalhes.debug) then
|
if (_detalhes.debug) then
|
||||||
print("|cFFFFFF00Details! storage scheduled to load (player in combat).")
|
print("|cFFFFFF00Details! storage scheduled to load (player in combat).")
|
||||||
|
|||||||
+2
-2
@@ -4798,7 +4798,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
|||||||
--if the current raid is current tier raid, pre-load the storage database
|
--if the current raid is current tier raid, pre-load the storage database
|
||||||
if (zoneType == "raid") then
|
if (zoneType == "raid") then
|
||||||
if (Details.InstancesToStoreData[zoneMapID]) then
|
if (Details.InstancesToStoreData[zoneMapID]) then
|
||||||
--Details.ScheduleLoadStorage()
|
Details.ScheduleLoadStorage()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -5170,7 +5170,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
|||||||
--when the user requested data from the storage but is in combat lockdown
|
--when the user requested data from the storage but is in combat lockdown
|
||||||
if (Details.schedule_storage_load) then
|
if (Details.schedule_storage_load) then
|
||||||
Details.schedule_storage_load = nil
|
Details.schedule_storage_load = nil
|
||||||
--Details.ScheduleLoadStorage()
|
Details.ScheduleLoadStorage()
|
||||||
end
|
end
|
||||||
|
|
||||||
--store a boss encounter when out of combat since it might need to load the storage
|
--store a boss encounter when out of combat since it might need to load the storage
|
||||||
|
|||||||
@@ -22,12 +22,9 @@ f:SetScript("OnEvent", function(self, event, addonName)
|
|||||||
if (addonName == "Details_DataStorage") then
|
if (addonName == "Details_DataStorage") then
|
||||||
DetailsDataStorage = DetailsDataStorage or Details:CreateStorageDB()
|
DetailsDataStorage = DetailsDataStorage or Details:CreateStorageDB()
|
||||||
DetailsDataStorage.Data = {}
|
DetailsDataStorage.Data = {}
|
||||||
print("loaded...")
|
|
||||||
if (DetailsDataStorage.VERSION < DETAILS_STORAGE_VERSION) then
|
if (DetailsDataStorage.VERSION < DETAILS_STORAGE_VERSION) then
|
||||||
print("is outdated")
|
|
||||||
--> do revisions
|
--> do revisions
|
||||||
if (DetailsDataStorage.VERSION < 6) then
|
if (DetailsDataStorage.VERSION < 6) then
|
||||||
print("outdated two, data wiped!")
|
|
||||||
table.wipe(DetailsDataStorage)
|
table.wipe(DetailsDataStorage)
|
||||||
DetailsDataStorage = Details:CreateStorageDB()
|
DetailsDataStorage = Details:CreateStorageDB()
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user