From 0e08a65dff1b64d5444a58354f9ecece9ea8d8a3 Mon Sep 17 00:00:00 2001 From: Ravbug Date: Wed, 3 Jul 2024 17:36:44 -0700 Subject: [PATCH] Automatically set correct copyright year --- source/interface_derived.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/interface_derived.cpp b/source/interface_derived.cpp index fc5f7a32..c8ae6371 100644 --- a/source/interface_derived.cpp +++ b/source/interface_derived.cpp @@ -221,12 +221,14 @@ void MainFrameDerived::Filter(wxKeyEvent &){ LoadProjects(filter); } +#define BUILD_YEAR (__DATE__ + 7) + //definitions for the events void MainFrameDerived::OnAbout(wxCommandEvent& event) { wxAboutDialogInfo aboutInfo; aboutInfo.SetName("Unity Hub Native"); - aboutInfo.SetCopyright("(C) Ravbug 2023"); + aboutInfo.SetCopyright(fmt::format("(C) Ravbug {}",BUILD_YEAR)); aboutInfo.SetDescription("Developed with wxWidgets in C++"); #if defined __linux__ aboutInfo.SetWebSite("https://github.com/ravbug/UnityHubNative");