From 80af15c95b20e64073f94725d516a49044c44871 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Wed, 13 May 2026 03:16:37 +0200 Subject: [PATCH] Log build info on startup (#1117) Co-authored-by: Luke Street --- src/m_Do/m_Do_main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/m_Do/m_Do_main.cpp b/src/m_Do/m_Do_main.cpp index 723210706f..ca681b9257 100644 --- a/src/m_Do/m_Do_main.cpp +++ b/src/m_Do/m_Do_main.cpp @@ -462,6 +462,11 @@ static std::string asset_path(const char* assetName) { return std::string("res/") + assetName; } +static void log_build_info() { + DuskLog.info("Build: {} (rev {}, built {}, type {})", DUSK_WC_DESCRIBE, DUSK_WC_REVISION, DUSK_WC_DATE, DUSK_BUILD_TYPE); + DuskLog.info("Platform: {}", DUSK_PLATFORM_NAME); +} + // ========================================================================= // PC ENTRY POINT // ========================================================================= @@ -511,6 +516,8 @@ int game_main(int argc, char* argv[]) { dusk::ConfigPath = dusk::data::initialize_data(); dusk::InitializeFileLogging(dusk::ConfigPath, startupLogLevel); + log_build_info(); + dusk::config::LoadFromUserPreferences(); ApplyCVarOverrides(parsed_arg_options["cvar"]); dusk::crash_reporting::initialize();