1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Added build number support

This commit is contained in:
JarnoVgr
2015-06-17 00:55:32 +02:00
parent 13244b8333
commit 92acfab160
2 changed files with 3 additions and 0 deletions

View File

@@ -80,6 +80,7 @@ typedef utf16* utf16string;
#define OPENRCT2_TIMESTAMP __DATE__ " " __TIME__
// The following constants are for automated build servers
#define OPENRCT2_BUILD_NUMBER ""
#define OPENRCT2_BUILD_SERVER ""
#define OPENRCT2_BRANCH "develop"
#define OPENRCT2_COMMIT_SHA1 ""

View File

@@ -376,6 +376,8 @@ static void DrawOpenRCT2(int x, int y)
sprintf(buffer, "%c%c%c%s, v%s", FORMAT_MEDIUMFONT, FORMAT_OUTLINE, FORMAT_WHITE, OPENRCT2_NAME, OPENRCT2_VERSION);
if (!str_is_null_or_empty(OPENRCT2_BRANCH))
sprintf(strchr(buffer, 0), "-%s", OPENRCT2_BRANCH);
if (!str_is_null_or_empty(OPENRCT2_BUILD_NUMBER))
sprintf(strchr(buffer, 0), " build %s", OPENRCT2_BUILD_NUMBER);
if (!str_is_null_or_empty(OPENRCT2_COMMIT_SHA1_SHORT))
sprintf(strchr(buffer, 0), " (%s)", OPENRCT2_COMMIT_SHA1_SHORT);
if (!str_is_null_or_empty(OPENRCT2_BUILD_SERVER))