diff --git a/Makefile b/Makefile index f30f19b..cea3c06 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,7 @@ LD := arm-none-eabi-ld OC := arm-none-eabi-objcopy name := AuReiNand +version := $(shell git describe --abbrev=0 --tags) dir_source := source dir_patches := patches @@ -16,7 +17,7 @@ dir_build := build dir_out := out ASFLAGS := -mlittle-endian -mcpu=arm946e-s -march=armv5te -CFLAGS := -Wall -Wextra -MMD -MP -marm $(ASFLAGS) -fno-builtin -fshort-wchar -std=c11 -Wno-main -O2 -ffast-math +CFLAGS := -Wall -Wextra -MMD -MP -marm $(ASFLAGS) -fno-builtin -fshort-wchar -std=c11 -Wno-main -O2 -ffast-math -DCONFIG_TITLE="\"$(name) $(version) configuration\"" FLAGS := name=$(name).dat dir_out=$(abspath $(dir_out)) ICON=$(abspath icon.png) APP_DESCRIPTION="Noob-friendly 3DS CFW." APP_AUTHOR="Reisyukaku/Aurora Wright" --no-print-directory objects_cfw = $(patsubst $(dir_source)/%.s, $(dir_build)/%.o, \ diff --git a/source/utils.c b/source/utils.c index be502bf..0f53917 100644 --- a/source/utils.c +++ b/source/utils.c @@ -57,7 +57,7 @@ void configureCFW(const char *configPath){ initScreens(); - drawString("AuReiNand configuration", 10, 10, COLOR_TITLE); + drawString(CONFIG_TITLE, 10, 10, COLOR_TITLE); drawString("Press A to select, START to save and reboot", 10, 30, COLOR_WHITE); //Read and parse the existing configuration