Skip to content

Commit

Permalink
Version freeze.
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacsv committed Jun 1, 2020
1 parent c5d14fe commit 57609e2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
cmake_minimum_required (VERSION 3.6)

set (VSE_VERSION_1 0)
set (VSE_VERSION_2 2)
set (VSE_VERSION_3 12)
set (VSE_VERSION_2 3)
set (VSE_VERSION_3 0)
set (VSE_LIB_NAME VisualScriptEngine)

function (SetCompilerOptions module)
Expand Down
13 changes: 12 additions & 1 deletion Sources/NodeUIEngine/NUIE_VersionCompatibility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
namespace NUIE
{

static const Version& GetFirstCompatibleVersion ()
{
static const Version FirstCompatibleVersion (0, 3, 0);
return FirstCompatibleVersion;
}

const Version& GetCurrentVersion ()
{
static const Version EngineVersion (VSE_VERSION_1, VSE_VERSION_2, VSE_VERSION_3);
Expand All @@ -12,7 +18,12 @@ const Version& GetCurrentVersion ()

bool IsCompatibleVersion (const Version& version)
{
return version <= GetCurrentVersion ();
if (version < GetFirstCompatibleVersion ()) {
return false;
} else if (version > GetCurrentVersion ()) {
return false;
}
return true;
}

}

0 comments on commit 57609e2

Please sign in to comment.