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 MAJOR, MINOR = "Gladdy", 4
|
||||||
local Gladdy = LibStub:NewLibrary(MAJOR, MINOR)
|
local Gladdy = LibStub:NewLibrary(MAJOR, MINOR)
|
||||||
local L
|
local L
|
||||||
Gladdy.version_major_num = 1
|
Gladdy.version_major_num = 2
|
||||||
Gladdy.version_minor_num = 0.22
|
Gladdy.version_minor_num = 0.00
|
||||||
Gladdy.version_num = Gladdy.version_major_num + Gladdy.version_minor_num
|
Gladdy.version_num = Gladdy.version_major_num + Gladdy.version_minor_num
|
||||||
Gladdy.version_releaseType = RELEASE_TYPES.release
|
Gladdy.version_releaseType = RELEASE_TYPES.release
|
||||||
Gladdy.version = PREFIX .. Gladdy.version_num .. "-" .. Gladdy.version_releaseType
|
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
|
if str == nil and not tbl.version_major_num then
|
||||||
return false, "Version conflict: version_major_num not seen"
|
return false, "Version conflict: version_major_num not seen"
|
||||||
end
|
end
|
||||||
if str == nil and tbl.version_major_num ~= Gladdy.version_major_num then
|
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
|
return false, "Version conflict: Major v" .. tbl.version_major_num .. " ~= v" .. Gladdy.version_major_num
|
||||||
end
|
end
|
||||||
if str == nil then
|
if str == nil then
|
||||||
str = "Gladdy.db"
|
str = "Gladdy.db"
|
||||||
|
Loading…
Reference in New Issue
Block a user