forked from Ports/perfect_dark
port: display branch name in legal screen
This commit is contained in:
1 parent
f2a2458795
commit
3c62a967a2
2 files changed
+11
No files matched your search
@@ -116,14 +116,23 @@ else
|
||||
endif
|
||||
|
||||
VERSION_HASH := $(shell git rev-parse --short HEAD)
|
||||
VERSION_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
|
||||
VERSION_TARGET := $(TARGET_PLATFORM)
|
||||
VERSION_ROMID := $(ROMID)
|
||||
|
||||
ifeq ($(VERSION_BRANCH),)
|
||||
VERSION_BRANCH := port-custom
|
||||
endif
|
||||
ifeq ($(VERSION_BRANCH),HEAD)
|
||||
VERSION_BRANCH := port-custom
|
||||
endif
|
||||
|
||||
DEFINES := \
|
||||
VERSION=$(VERSION) \
|
||||
VERSION_HASH=\"$(VERSION_HASH)\" \
|
||||
VERSION_TARGET=\"$(VERSION_TARGET)\" \
|
||||
VERSION_ROMID=\"$(VERSION_ROMID)\" \
|
||||
VERSION_BRANCH=\"$(VERSION_BRANCH)\" \
|
||||
MATCHING=0 \
|
||||
PAL=$(IS_PAL) \
|
||||
PIRACYCHECKS=0 \
|
||||
|
||||
@@ -372,6 +372,8 @@ Gfx *titleRenderLegal(Gfx *gdl)
|
||||
elem->textptr = VERSION_HASH " (" VERSION_TARGET ")";
|
||||
} else if (elem->textid == L_OPTIONS_083) {
|
||||
elem->textptr = VERSION_ROMID;
|
||||
} else if (elem->textid == L_OPTIONS_082) {
|
||||
elem->textptr = "Perfect Dark (" VERSION_BRANCH ")";
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user