aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/util/version.cpp
diff options
context:
space:
mode:
authorJack <66967891+ASpoonPlaysGames@users.noreply.github.com>2023-10-16 13:51:24 +0100
committerGitHub <noreply@github.com>2023-10-16 14:51:24 +0200
commitd463a434746cab295c4db57001650b623bd481b1 (patch)
treecea8845111c10144f89c3ba542879da37f5b0a3e /NorthstarDLL/util/version.cpp
parentf763e66a1ffcb4cd8a06e30ad9de15a4c5139f4b (diff)
downloadNorthstarLauncher-1.19.9-rc3.tar.gz
NorthstarLauncher-1.19.9-rc3.zip
Use 4th digit in version number for CI build number (#541)v1.19.9-rc3v1.19.9-rc2v1.19.9-rc1v1.19.9
Sets the 4th digit of the version number to the current CI run number. This is done to more easily link a binary back to the PR or commit it came from.
Diffstat (limited to 'NorthstarDLL/util/version.cpp')
-rw-r--r--NorthstarDLL/util/version.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/NorthstarDLL/util/version.cpp b/NorthstarDLL/util/version.cpp
index 1ad62438..a947cde1 100644
--- a/NorthstarDLL/util/version.cpp
+++ b/NorthstarDLL/util/version.cpp
@@ -11,9 +11,9 @@ void InitialiseVersion()
int ua_len = 0;
// We actually use the rightmost integer do determine whether or not we're a debug/dev build
- // If it is set to 1, we are a dev build
- // On github CI, we set this 1 to a 0 automatically as we replace the 0,0,0,1 with the real version number
- if (northstar_version[3] == 1)
+ // If it is set to a non-zero value, we are a dev build
+ // On github CI, we set this to a 0 automatically as we replace the 0,0,0,1 with the real version number
+ if (northstar_version[3])
{
sprintf(version, "%d.%d.%d.%d+dev", northstar_version[0], northstar_version[1], northstar_version[2], northstar_version[3]);
ua_len += snprintf(