mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Adjust formatting of git branch in game
- Detect and highlight detached HEAD on title screen and in console - Remove '-' between branch and commit in console
This commit is contained in:
parent
cff0def2a4
commit
cc30118e3b
2 changed files with 7 additions and 1 deletions
|
|
@ -1211,6 +1211,12 @@ void D_SRB2Main(void)
|
|||
/* break the version string into version numbers, for netplay */
|
||||
D_ConvertVersionNumbers();
|
||||
|
||||
if (!strcmp(compbranch, ""))
|
||||
{
|
||||
// \x8b = aqua highlight
|
||||
compbranch = "\x8b" "detached HEAD" "\x80";
|
||||
}
|
||||
|
||||
#ifdef DEVELOP
|
||||
D_AbbrevCommit();
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -4742,7 +4742,7 @@ static void Command_ListDoomednums_f(void)
|
|||
static void Command_Version_f(void)
|
||||
{
|
||||
#ifdef DEVELOP
|
||||
CONS_Printf("Ring Racers %s-%s (%s %s)\n", compbranch, comprevision, compdate, comptime);
|
||||
CONS_Printf("Ring Racers %s %s (%s %s)\n", compbranch, comprevision, compdate, comptime);
|
||||
#else
|
||||
CONS_Printf("Ring Racers %s (%s %s %s %s) ", VERSIONSTRING, compdate, comptime, comprevision, compbranch);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue