better version control

This commit is contained in:
cdozdil
2024-05-02 14:09:20 +03:00
parent 60bb52d963
commit 2249ae8b79
3 changed files with 16 additions and 1 deletions
Binary file not shown.
+2 -1
View File
@@ -1,5 +1,6 @@
#include "../Config.h"
#include "../Logger.h"
#include "../Resource.h"
#include "Imgui_Base.h"
#include "imgui/imgui_impl_win32.h"
@@ -423,7 +424,7 @@ void Imgui_Base::RenderMenu()
ImGui::SetNextWindowPos(ImVec2{ posX, posY }, ImGuiCond_FirstUseEver);
if (ImGui::Begin("OptiScaler v0.4.3", nullptr, flags))
if (ImGui::Begin(std::format("OptiScaler v{}.{}.{}", VER_MAJOR_VERSION, VER_MINOR_VERSION, VER_HOTFIX_VERSION).c_str(), nullptr, flags))
{
ImGui::SetWindowFontScale(imguiRatio);
+14
View File
@@ -14,3 +14,17 @@
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
#define STRINGIZE_(s) #s
#define STRINGIZE(s) STRINGIZE_(s)
#define VER_MAJOR_VERSION 0
#define VER_MINOR_VERSION 4
#define VER_HOTFIX_VERSION 4
#define VER_BUILD_NUMBER 0
#define VER_FILE_VERSION VER_MAJOR_VERSION, VER_MINOR_VERSION, VER_HOTFIX_VERSION, VER_BUILD_NUMBER
#define VER_FILE_VERSION_STR STRINGIZE(VER_MAJOR_VERSION) "." STRINGIZE(VER_MINOR_VERSION) "." STRINGIZE(VER_HOTFIX_VERSION) "." STRINGIZE(VER_BUILD_NUMBER)
#define VER_PRODUCT_VERSION VER_FILE_VERSION
#define VER_PRODUCT_VERSION_STR VER_FILE_VERSION_STR