Skip to content

Commit 57609e2

Browse files
committed
Version freeze.
1 parent c5d14fe commit 57609e2

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
cmake_minimum_required (VERSION 3.6)
22

33
set (VSE_VERSION_1 0)
4-
set (VSE_VERSION_2 2)
5-
set (VSE_VERSION_3 12)
4+
set (VSE_VERSION_2 3)
5+
set (VSE_VERSION_3 0)
66
set (VSE_LIB_NAME VisualScriptEngine)
77

88
function (SetCompilerOptions module)

Sources/NodeUIEngine/NUIE_VersionCompatibility.cpp

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
namespace NUIE
55
{
66

7+
static const Version& GetFirstCompatibleVersion ()
8+
{
9+
static const Version FirstCompatibleVersion (0, 3, 0);
10+
return FirstCompatibleVersion;
11+
}
12+
713
const Version& GetCurrentVersion ()
814
{
915
static const Version EngineVersion (VSE_VERSION_1, VSE_VERSION_2, VSE_VERSION_3);
@@ -12,7 +18,12 @@ const Version& GetCurrentVersion ()
1218

1319
bool IsCompatibleVersion (const Version& version)
1420
{
15-
return version <= GetCurrentVersion ();
21+
if (version < GetFirstCompatibleVersion ()) {
22+
return false;
23+
} else if (version > GetCurrentVersion ()) {
24+
return false;
25+
}
26+
return true;
1627
}
1728

1829
}

0 commit comments

Comments
 (0)