1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 14:02:59 +01:00

Merge pull request #1369 from JarnoVgr/develop

Added build number support
This commit is contained in:
Ted John
2015-06-17 00:02:11 +01:00
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))