split version information in engine too
authorkoda
Fri, 01 Mar 2013 01:05:43 +0100
changeset 8615 a4cb6168016e
parent 8614 5f74a047cf2c
child 8616 c4536e98c712
split version information in engine too
hedgewars/config.inc.in
hedgewars/hwengine.pas
--- a/hedgewars/config.inc.in	Fri Mar 01 00:58:37 2013 +0100
+++ b/hedgewars/config.inc.in	Fri Mar 01 01:05:43 2013 +0100
@@ -23,5 +23,7 @@
  *)
 const cNetProtoVersion = ${HEDGEWARS_PROTO_VER};
       cVersionString = '${HEDGEWARS_VERSION}';
+      cRevisionString = '${revision_number}';
+      cHashString = '${hash_number}';
       cLuaLibrary = '${LUA_LIBRARY}';
       cDefaultPathPrefix = '${CMAKE_INSTALL_PREFIX}/${SHAREPATH}/Data';
--- a/hedgewars/hwengine.pas	Fri Mar 01 00:58:37 2013 +0100
+++ b/hedgewars/hwengine.pas	Fri Mar 01 01:05:43 2013 +0100
@@ -339,7 +339,8 @@
     parseCommandLine(argc, argv);
 {$ENDIF}
     initEverything(true);
-    WriteLnToConsole('Hedgewars ' + cVersionString + ' engine (network protocol: ' + inttostr(cNetProtoVersion) + ')');
+    WriteLnToConsole('Hedgewars engine ' + cVersionString + '-r' + cRevisionString +
+                     ' (' + cHashString + ') with protocol #' + inttostr(cNetProtoVersion));
     AddFileLog('Prefix: "' + PathPrefix +'"');
     AddFileLog('UserPrefix: "' + UserPathPrefix +'"');