Export a 10-char commit hash in the build version

This avoids collisions in the user report, fixes #7174.
Update the user report version to account for the new build version
format, fixes #7173.

The build version displayed in the GUI is kept at 5 characters for
main menu clutter concerns.
This commit is contained in:
Itms
2025-01-04 12:25:08 +01:00
parent 8ee48a164a
commit 9f023825e0
3 changed files with 13 additions and 5 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
/* Copyright (C) 2024 Wildfire Games.
/* Copyright (C) 2025 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@@ -406,7 +406,7 @@ void RunHardwareDetection(bool writeSystemInfoBeforeDetection, Renderer::Backend
Script::SetProperty(rq, settings, "random_device_entropy", std::random_device{}.entropy());
// The version should be increased for every meaningful change.
const int reportVersion = 21;
const int reportVersion = 22;
// Send the same data to the reporting system
g_UserReporter.SubmitReport(