X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_console.pas;h=01cd41ab1c677fa9c45a791de02d2a7ea4d59644;hb=dbac531e9917e59c30dbe035439ffdae4e2e3c9a;hp=5cfce983eab76d411b4954307cd0345a08fe9adc;hpb=5dacd86506ba1b57da7c3b521955d0f4a64cd1fb;p=d2df-sdl.git diff --git a/src/game/g_console.pas b/src/game/g_console.pas index 5cfce98..01cd41a 100644 --- a/src/game/g_console.pas +++ b/src/game/g_console.pas @@ -2,8 +2,7 @@ * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * the Free Software Foundation, version 3 of the License ONLY. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -38,6 +37,7 @@ uses LAST_ACTION = ACTION_WEAPPREV; procedure g_Console_Init; +procedure g_Console_SysInit; procedure g_Console_Update; procedure g_Console_Draw (MessagesOnly: Boolean = False); procedure g_Console_Char (C: AnsiChar); @@ -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