add git hash to version print on startup

this helps us debug issues
This commit is contained in:
Lion Kortlepel
2022-11-05 21:49:21 +01:00
parent 7f47337e1b
commit e8d66ef983
5 changed files with 30 additions and 12 deletions

View File

@@ -78,7 +78,7 @@ TEST_CASE("GetPidVid") {
}
TServer::TServer(const std::vector<std::string_view>& Arguments) {
beammp_info("BeamMP Server v" + Application::ServerVersionString());
beammp_infof("BeamMP Server v{} ({})", Application::ServerVersionString(), BEAMMP_GIT_HASH);
Application::SetSubsystemStatus("Server", Application::Status::Starting);
if (Arguments.size() > 1) {
Application::SetSetting(StrCustomIP, std::string(Arguments[0]));