From eaa064a99153a9a37af6ff8abe8d105d5c307c85 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Thu, 8 Feb 2018 01:13:19 +0300 Subject: [PATCH] write version and built time to log --- src/game/g_basic.pas | 2 ++ src/game/g_main.pas | 12 +++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/game/g_basic.pas b/src/game/g_basic.pas index bdeb090..eba4094 100644 --- a/src/game/g_basic.pas +++ b/src/game/g_basic.pas @@ -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; diff --git a/src/game/g_main.pas b/src/game/g_main.pas index ac24954..728cb22 100644 --- a/src/game/g_main.pas +++ b/src/game/g_main.pas @@ -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); -- 2.29.2