DEADSOFTWARE

write version and built time to log
authorfgsfds <pvt.fgsfds@gmail.com>
Wed, 7 Feb 2018 22:13:19 +0000 (01:13 +0300)
committerfgsfds <pvt.fgsfds@gmail.com>
Wed, 7 Feb 2018 22:13:19 +0000 (01:13 +0300)
src/game/g_basic.pas
src/game/g_main.pas

index bdeb090420fa88c415b9144f3703a286ccdbe6e0..eba4094cb147133a49a42269fc4da56cb5b63287 100644 (file)
@@ -23,6 +23,8 @@ uses
 
 const
   GAME_VERSION  = '0.667';
+  GAME_BUILDDATE = {$I %DATE%};
+  GAME_BUILDTIME = {$I %TIME%};
   UID_GAME    = 1;
   UID_PLAYER  = 2;
   UID_MONSTER = 3;
index ac2495448ed9caf0cefec0dd91ceb0c7b010ea63..728cb2257fa2ab58acf07bf80b961001df17aee8 100644 (file)
@@ -39,7 +39,7 @@ implementation
 uses
   SDL2, GL, GLExt, wadreader, e_log, g_window,
   e_graphics, e_input, g_game, g_console, g_gui,
-  e_sound, g_options, g_sound, g_player,
+  e_sound, g_options, g_sound, g_player, g_basic,
   g_weapons, SysUtils, g_triggers, MAPDEF, g_map,
   g_menu, g_language, g_net, g_holmes,
   utils, conbuf, envvars, fui_wadread, fui_style,
@@ -66,6 +66,16 @@ begin
 
   e_InitLog(GameDir + '/' + LOG_FILENAME, TWriteMode.WM_NEWFILE);
 
+  e_WriteLog(
+    'Doom 2D: Forever version ' + GAME_VERSION +
+    ' proto ' + IntToStr(NET_PROTOCOL_VER),
+    TMsgType.Notify
+  );
+  e_WriteLog(
+    'Build date: ' + GAME_BUILDDATE + ' ' + GAME_BUILDTIME,
+    TMsgType.Notify
+  );
+
   e_WriteLog('Read config file', TMsgType.Notify);
   g_Options_Read(GameDir + '/' + CONFIG_FILENAME);