X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_main.pas;h=def9f2914d20b342539c8021c605dc93e39c353f;hb=9b4492224e2e59560931496e925333bdbe6f2b0e;hp=9fadc1beddc6e0c68f2e36ae6ecb39f3e0693985;hpb=b4b66ea803f8d896c2b2abd75108ef233030da03;p=d2df-sdl.git diff --git a/src/game/g_main.pas b/src/game/g_main.pas index 9fadc1b..def9f29 100644 --- a/src/game/g_main.pas +++ b/src/game/g_main.pas @@ -436,6 +436,8 @@ begin e_InitWritelnDriver(); 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('Build hash: ' + g_GetBuildHash(), TMsgType.Notify); + e_WriteLog('Build by: ' + g_GetBuilderName(), TMsgType.Notify); e_LogWritefln('Force bin dir: %s', [forceBinDir], TMsgType.Notify); e_LogWritefln('BINARY PATH: [%s]', [binPath], TMsgType.Notify); @@ -488,20 +490,15 @@ begin e_InitInput; sys_Init; + g_Options_SetDefault; + g_Options_SetDefaultVideo; s := CONFIG_FILENAME; if e_FindResource(ConfigDirs, s) = true then - begin - g_Options_Read(s) - end - else - begin - g_Options_SetDefault; - g_Options_SetDefaultVideo - end; + g_Options_Read(s); + g_Console_SysInit; if sys_SetDisplayMode(gScreenWidth, gScreenHeight, gBPP, gFullScreen) = False then raise Exception.Create('Failed to set videomode on startup.'); - g_Console_SysInit; e_WriteLog(gLanguage, TMsgType.Notify); g_Language_Set(gLanguage); @@ -570,6 +567,7 @@ begin if assigned(oglDeinitCB) then oglDeinitCB; {$ENDIF} + g_Console_WriteGameConfig; sys_Final; end;