aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorswurl <swurl@swurl.xyz>2025-06-05 18:58:54 +0000
committercrueter <crueter@noreply.localhost>2025-06-05 18:58:54 +0000
commit7e13da47af71814d612c6c060be68e8ba84271ff (patch)
tree52e8a7b5229d11a8d3c583d74cf3ff6126f363b8 /src/common
parentd2364ae1f7f6ea962d296148d85fe08549baed37 (diff)
Fix build ID and update checker (#148)
Signed-off-by: swurl <swurl@swurl.xyz> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/148 Co-authored-by: swurl <swurl@swurl.xyz> Co-committed-by: swurl <swurl@swurl.xyz>
Diffstat (limited to 'src/common')
-rw-r--r--src/common/scm_rev.cpp.in2
-rw-r--r--src/common/scm_rev.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/common/scm_rev.cpp.in b/src/common/scm_rev.cpp.in
index ba741c5668..b6bff72867 100644
--- a/src/common/scm_rev.cpp.in
+++ b/src/common/scm_rev.cpp.in
@@ -17,6 +17,7 @@
#define BUILD_ID "@BUILD_ID@"
#define TITLE_BAR_FORMAT_IDLE "@TITLE_BAR_FORMAT_IDLE@"
#define TITLE_BAR_FORMAT_RUNNING "@TITLE_BAR_FORMAT_RUNNING@"
+#define IS_DEV_BUILD @IS_DEV_BUILD@
namespace Common {
@@ -30,6 +31,7 @@ const char g_build_version[] = BUILD_VERSION;
const char g_build_id[] = BUILD_ID;
const char g_title_bar_format_idle[] = TITLE_BAR_FORMAT_IDLE;
const char g_title_bar_format_running[] = TITLE_BAR_FORMAT_RUNNING;
+const bool g_is_dev_build = IS_DEV_BUILD;
/// Anonymizes SCM data
/// This is quite weak. But better than nothing.
diff --git a/src/common/scm_rev.h b/src/common/scm_rev.h
index 59d0cfcfb3..ee1997950a 100644
--- a/src/common/scm_rev.h
+++ b/src/common/scm_rev.h
@@ -16,5 +16,6 @@ extern const char g_build_id[];
extern const char g_title_bar_format_idle[];
extern const char g_title_bar_format_running[];
extern const char g_shader_cache_version[];
+extern const bool g_is_dev_build;
} // namespace Common