Release with update to framework
This commit is contained in:
@@ -3,7 +3,7 @@ DETAILS_STORAGE_VERSION = 5
|
||||
|
||||
function _detalhes:CreateStorageDB()
|
||||
DetailsDataStorage = {
|
||||
VERSION = DETAILS_STORAGE_VERSION,
|
||||
VERSION = DETAILS_STORAGE_VERSION,
|
||||
[14] = {}, --normal mode (raid)
|
||||
[15] = {}, --heroic mode (raid)
|
||||
[16] = {}, --mythic mode (raid)
|
||||
@@ -13,29 +13,27 @@ function _detalhes:CreateStorageDB()
|
||||
return DetailsDataStorage
|
||||
end
|
||||
|
||||
local f = CreateFrame("frame", nil, UIParent)
|
||||
local f = CreateFrame ("frame", nil, UIParent)
|
||||
f:Hide()
|
||||
f:RegisterEvent("ADDON_LOADED")
|
||||
|
||||
f:SetScript("OnEvent", function(self, event, addonName)
|
||||
f:RegisterEvent ("ADDON_LOADED")
|
||||
|
||||
f:SetScript ("OnEvent", function (self, event, addonName)
|
||||
if (addonName == "Details_DataStorage") then
|
||||
|
||||
DetailsDataStorage = DetailsDataStorage or _detalhes:CreateStorageDB()
|
||||
|
||||
DetailsDataStorage.Data = {}
|
||||
|
||||
if (DetailsDataStorage.VERSION < DETAILS_STORAGE_VERSION) then
|
||||
--do revisions
|
||||
--> do revisions
|
||||
if (DetailsDataStorage.VERSION < 5) then
|
||||
table.wipe(DetailsDataStorage)
|
||||
table.wipe (DetailsDataStorage)
|
||||
DetailsDataStorage = _detalhes:CreateStorageDB()
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
if (_detalhes and _detalhes.debug) then
|
||||
print("|cFFFFFF00Details! Storage|r: loaded!")
|
||||
print ("|cFFFFFF00Details! Storage|r: loaded!")
|
||||
end
|
||||
DETAILS_STORAGE_LOADED = true
|
||||
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user