bump version + backwards compatible imports
This commit is contained in:
parent
114c0ac96d
commit
1c42523a2f
@ -30,8 +30,8 @@ local LibStub = LibStub
|
||||
local MAJOR, MINOR = "Gladdy", 4
|
||||
local Gladdy = LibStub:NewLibrary(MAJOR, MINOR)
|
||||
local L
|
||||
Gladdy.version_major_num = 1
|
||||
Gladdy.version_minor_num = 0.22
|
||||
Gladdy.version_major_num = 2
|
||||
Gladdy.version_minor_num = 0.00
|
||||
Gladdy.version_num = Gladdy.version_major_num + Gladdy.version_minor_num
|
||||
Gladdy.version_releaseType = RELEASE_TYPES.release
|
||||
Gladdy.version = PREFIX .. Gladdy.version_num .. "-" .. Gladdy.version_releaseType
|
||||
|
@ -133,8 +133,8 @@ function ExportImport:CheckDeserializedOptions(tbl, refTbl, str)
|
||||
if str == nil and not tbl.version_major_num then
|
||||
return false, "Version conflict: version_major_num not seen"
|
||||
end
|
||||
if str == nil and tbl.version_major_num ~= Gladdy.version_major_num then
|
||||
return false, "Version conflict: " .. tbl.version_major_num .. " ~= " .. Gladdy.version_major_num
|
||||
if str == nil and tbl.version_major_num > Gladdy.version_major_num then
|
||||
return false, "Version conflict: Major v" .. tbl.version_major_num .. " ~= v" .. Gladdy.version_major_num
|
||||
end
|
||||
if str == nil then
|
||||
str = "Gladdy.db"
|
||||
|
Loading…
Reference in New Issue
Block a user