mirror of
https://github.com/switchbrew/nx-hbloader.git
synced 2025-06-20 21:12:39 +02:00
Add version notice text
This commit is contained in:
parent
7f8fb00864
commit
7c1eb6235f
3
Makefile
3
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
|
||||
|
||||
|
@ -2,7 +2,9 @@
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
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];
|
||||
|
Loading…
Reference in New Issue
Block a user