bump version + backwards compatible imports

This commit is contained in:
Sumsebrum 2022-01-11 00:30:32 +01:00
parent 114c0ac96d
commit 1c42523a2f
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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"