hedgewars/hwLibrary.pas
changeset 9309 7e8f91634f80
parent 9080 9b42757d7e71
child 9998 736015b847e3
--- a/hedgewars/hwLibrary.pas	Mon Jul 01 22:49:28 2013 +0200
+++ b/hedgewars/hwLibrary.pas	Tue Jul 02 23:49:41 2013 +0200
@@ -41,6 +41,11 @@
     versionStr^:= cVersionString;
 end;
 
+function HW_versionString: PChar; cdecl; export;
+begin
+    exit(cVersionString + '-r' + cRevisionString + ' (' + cHashString + ')');
+end;
+
 // equivalent to esc+y; when closeFrontend = true the game exits after memory cleanup
 procedure HW_terminate(closeFrontend: boolean); cdecl; export;
 begin
@@ -118,6 +123,7 @@
     GenLandPreview,
     LoadLocaleWrapper,
     HW_versionInfo,
+    HW_versionString,
     HW_terminate,
     HW_getNumberOfWeapons,
     HW_getMaxNumberOfHogs,