mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Merge pull request #35 from haganbmj/unofficial-version-info
misc: define 2.3.0 version number + add unofficial suffix
This commit is contained in:
+2
-1
@@ -1,6 +1,7 @@
|
||||
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_REQUIRED True)
|
||||
|
||||
@@ -51,11 +51,14 @@ template <> void GetDefaultMember::handle(const Version& v) {
|
||||
// ----------------------------------------------------------------------------- : Versions
|
||||
|
||||
// NOTE: Don't use leading zeroes, they mean octal
|
||||
const Version app_version = 10000 * MSE_VERSION_MAJOR + 100 * MSE_VERSION_MINOR + MSE_VERSION_PATCH;
|
||||
#ifdef UNICODE
|
||||
const Char* version_suffix = _("");
|
||||
#else
|
||||
const Char* version_suffix = _(" (ascii build)");
|
||||
const Version app_version = 10000 * MSE_VERSION_MAJOR + 100 * MSE_VERSION_MINOR + MSE_VERSION_PATCH;
|
||||
|
||||
#if defined UNOFFICIAL_BUILD
|
||||
const Char* version_suffix = _(" (Unofficial)");
|
||||
#elif defined UNICODE
|
||||
const Char* version_suffix = _("");
|
||||
#else
|
||||
const Char* version_suffix = _(" (ascii build)");
|
||||
#endif
|
||||
|
||||
/// Which version of MSE are the files we write out compatible with?
|
||||
|
||||
Reference in New Issue
Block a user