Log build info on startup (#1117)

Co-authored-by: Luke Street <luke@street.dev>
This commit is contained in:
Pieter-Jan Briers
2026-05-13 03:16:37 +02:00
committed by GitHub
parent 4c5e3b933e
commit 80af15c95b
+7
View File
@@ -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();