misc: define 2.3.0 version number + add unofficial suffix

This commit is contained in:
Brendan Hagan
2022-07-29 20:56:08 -04:00
parent 06691649a8
commit 3ace171b82
2 changed files with 10 additions and 6 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
cmake_minimum_required(VERSION 3.13) cmake_minimum_required(VERSION 3.13)
project(magicseteditor VERSION 2.2.2) project(magicseteditor VERSION 2.3.0)
add_definitions(-DUNOFFICIAL_BUILD)
set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True) set(CMAKE_CXX_STANDARD_REQUIRED True)
+8 -5
View File
@@ -51,11 +51,14 @@ template <> void GetDefaultMember::handle(const Version& v) {
// ----------------------------------------------------------------------------- : Versions // ----------------------------------------------------------------------------- : Versions
// NOTE: Don't use leading zeroes, they mean octal // NOTE: Don't use leading zeroes, they mean octal
const Version app_version = 10000 * MSE_VERSION_MAJOR + 100 * MSE_VERSION_MINOR + MSE_VERSION_PATCH; const Version app_version = 10000 * MSE_VERSION_MAJOR + 100 * MSE_VERSION_MINOR + MSE_VERSION_PATCH;
#ifdef UNICODE
const Char* version_suffix = _(""); #if defined UNOFFICIAL_BUILD
#else const Char* version_suffix = _(" (Unofficial)");
const Char* version_suffix = _(" (ascii build)"); #elif defined UNICODE
const Char* version_suffix = _("");
#else
const Char* version_suffix = _(" (ascii build)");
#endif #endif
/// Which version of MSE are the files we write out compatible with? /// Which version of MSE are the files we write out compatible with?