From: fgsfds Date: Wed, 7 Feb 2018 22:13:19 +0000 (+0300) Subject: write version and built time to log X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=eaa064a99153a9a37af6ff8abe8d105d5c307c85;p=d2df-sdl.git write version and built time to log --- 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);