summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Version.cpp
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2024-03-23 00:18:51 -0500
committerJordan Woyak <jordan.woyak@gmail.com>2024-03-23 16:48:52 -0500
commit02f57a47785c89d5574bf9cfd8d6b6279f93e60d (patch)
tree47ce33c51dd7e7a138705e437971e1365231b63e /Source/Core/Common/Version.cpp
parent3948ac9513b31122e031269c912b206c8389eda4 (diff)
Replace SCM_IS_MASTER with SCM_COMMITS_AHEAD_MASTER
Diffstat (limited to 'Source/Core/Common/Version.cpp')
-rw-r--r--Source/Core/Common/Version.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/Core/Common/Version.cpp b/Source/Core/Common/Version.cpp
index 7801aaae30..25c678f061 100644
--- a/Source/Core/Common/Version.cpp
+++ b/Source/Core/Common/Version.cpp
@@ -20,7 +20,8 @@ namespace Common
const std::string& GetScmRevStr()
{
static const std::string scm_rev_str = "Dolphin "
-#if !SCM_IS_MASTER
+ // Note this macro can be empty if the master branch does not exist.
+#if 1 - SCM_COMMITS_AHEAD_MASTER - 1 != 0
"[" SCM_BRANCH_STR "] "
#endif
@@ -74,4 +75,10 @@ const std::string& GetNetplayDolphinVer()
return netplay_dolphin_ver;
}
+int GetScmCommitsAheadMaster()
+{
+ // Note this macro can be empty if the master branch does not exist.
+ return SCM_COMMITS_AHEAD_MASTER + 0;
+}
+
} // namespace Common