From 3e7c4cec42570cda7b7233676601a94deb432666 Mon Sep 17 00:00:00 2001 From: Robin Jones Date: Fri, 10 Nov 2023 16:41:10 +0000 Subject: [PATCH] Add build stamp (#56) ## Description Make sure that a menu build is identifiable. ## Motivation and Context It is not always obvious what version of a menu is running. In future, the build date should be used as the start time for carts that do not have a RTC. ## How Has This Been Tested? Works on the SC64, although I am sure it can be improved. ## Screenshots ## Types of changes - [x] Improvement (non-breaking change that adds a new feature) - [ ] Bug fix (fixes an issue) - [ ] Breaking change (breaking change) - [ ] Config and build (change in the configuration and build system, has no impact on code or features) ## Checklist: - [ ] My code follows the code style of this project. - [ ] My change requires a change to the documentation. - [ ] I have updated the documentation accordingly. - [ ] I have added tests to cover my changes. - [ ] All new and existing tests passed. Signed-off-by: GITHUB_USER --- Makefile | 2 ++ src/menu/views/credits.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 41be84a3..807aad07 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,8 @@ ASSETS_DIR = assets BUILD_DIR = build OUTPUT_DIR = output +FLAGS += -DMENU_VERSION=\"0.0.1.$(shell date +%Y-%m-%dT%H:%M:%SZ).ALPHA\" + include $(N64_INST)/include/n64.mk N64_CFLAGS += -iquote $(SOURCE_DIR) -iquote $(ASSETS_DIR) -I $(SOURCE_DIR)/libs -flto=auto $(FLAGS) diff --git a/src/menu/views/credits.c b/src/menu/views/credits.c index 54f8cca7..5228390a 100644 --- a/src/menu/views/credits.c +++ b/src/menu/views/credits.c @@ -2,7 +2,7 @@ #ifndef MENU_VERSION -#define MENU_VERSION "0.0.0.5.ALPHA" +#define MENU_VERSION "0.0.0.6.ALPHA" #endif