X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_console.pas;h=27ef5ecdb18b982c65cd625bb47e5ae86e356985;hb=408d21ccc37ab8b7848b9e0eecc48bd38d2ae89c;hp=4141f27aeb4b6f66d7f2809559ec52fa42c7e184;hpb=0f52924bd95347684a7635a9843802364b6d9712;p=d2df-sdl.git diff --git a/src/game/g_console.pas b/src/game/g_console.pas index 4141f27..27ef5ec 100644 --- a/src/game/g_console.pas +++ b/src/game/g_console.pas @@ -85,10 +85,14 @@ var implementation uses - g_textures, g_main, e_graphics, e_input, g_game, - SysUtils, g_basic, g_options, Math, g_touch, + g_textures, g_main, e_graphics, e_input, g_game, g_gfx, g_player, g_items, + SysUtils, g_basic, g_options, Math, g_touch, e_res, g_menu, g_gui, g_language, g_net, g_netmsg, e_log, conbuf; +const + configScript = 'dfconfig.cfg'; + autoexecScript = 'autoexec.cfg'; + configComment = 'generated by doom2d, do not modify'; type PCommand = ^TCommand; @@ -580,7 +584,7 @@ begin begin // exec if Length(p) = 2 then - g_Console_ReadConfig(GameDir + '/' + p[1]) + g_Console_ReadConfig(p[1]) else g_Console_Add('exec