diff --git a/CMakeLists.txt b/CMakeLists.txt index cbc3450a..27aa9610 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/src/util/version.cpp b/src/util/version.cpp index 319f26b2..0aebbcab 100644 --- a/src/util/version.cpp +++ b/src/util/version.cpp @@ -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?