diff --git a/Makefile b/Makefile index 8bbd85e..acbf40d 100644 --- a/Makefile +++ b/Makefile @@ -43,6 +43,7 @@ SOURCES := source DATA := data INCLUDES := include #ROMFS := romfs +APP_VERSION := 2.2.0 #--------------------------------------------------------------------------------- # options for code generation @@ -52,7 +53,7 @@ ARCH := -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE CFLAGS := -g -Wall -O2 -ffunction-sections \ $(ARCH) $(DEFINES) -CFLAGS += $(INCLUDE) -D__SWITCH__ +CFLAGS += $(INCLUDE) -D__SWITCH__ -DVERSION=\"v$(APP_VERSION)\" CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions diff --git a/source/main.c b/source/main.c index 8a4ed5b..67c9776 100644 --- a/source/main.c +++ b/source/main.c @@ -2,7 +2,9 @@ #include #include -const char* g_easterEgg = "Do you mean to tell me that you're thinking seriously of building that way, when and if you are an architect?"; +const char g_noticeText[] = + "nx-hbloader " VERSION "\0" + "Do you mean to tell me that you're thinking seriously of building that way, when and if you are an architect?"; static char g_argv[2048]; static char g_nextArgv[2048]; @@ -389,7 +391,7 @@ void loadNro(void) { EntryType_LastLoadResult, 0, {0, 0} }, { EntryType_SyscallAvailableHint, 0, {0xffffffffffffffff, 0x9fc1fff0007ffff} }, { EntryType_RandomSeed, 0, {0, 0} }, - { EntryType_EndOfList, 0, {0, 0} } + { EntryType_EndOfList, 0, {(u64)(uintptr_t)g_noticeText, sizeof(g_noticeText)} } }; ConfigEntry *entry_AppletType = &entries[2];