From 71e3fedb64970c5f4d66d10749f3dc40c0c14f56 Mon Sep 17 00:00:00 2001 From: BZLZHH Date: Thu, 13 Feb 2025 17:14:46 +0800 Subject: [PATCH] [Release] (version.h|getter.cpp): Version dump to 1.0.3.1. Signed-off-by: BZLZHH --- src/main/cpp/gl/getter.cpp | 3 +++ src/main/cpp/version.h | 1 + 2 files changed, 4 insertions(+) diff --git a/src/main/cpp/gl/getter.cpp b/src/main/cpp/gl/getter.cpp index a696211..6748a99 100644 --- a/src/main/cpp/gl/getter.cpp +++ b/src/main/cpp/gl/getter.cpp @@ -197,6 +197,9 @@ const GLubyte * glGetString( GLenum name ) { std::string realVersion = " " + std::to_string(MAJOR) + "." + std::to_string(MINOR) + "." + std::to_string(REVISION); + if (PATCH) { + realVersion += "." + std::to_string(PATCH); + } std::string suffix = realVersion + (version_type == VERSION_ALPHA ? " | §4§l如果您在公开平台看到这一提示, 则发布者已违规!§r" : std::string(version_type == VERSION_DEVELOPMENT?".Dev":"")); versionString += suffix; diff --git a/src/main/cpp/version.h b/src/main/cpp/version.h index 063bfda..60a48d5 100644 --- a/src/main/cpp/version.h +++ b/src/main/cpp/version.h @@ -11,6 +11,7 @@ #define MAJOR 1 #define MINOR 0 #define REVISION 3 +#define PATCH 1 const int version_type = VERSION_RELEASE;