X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_console.pas;h=97f5c20263a020b6b012bfa77ef438959c797bbd;hb=d2f40139dee3e4f0f8cea6b8b9f0409a1eddb721;hp=69158eae2eb830bacfa8b785e2f09b35b28dde35;hpb=7301e8529da2fdfdae50653f91c1f9597df65541;p=d2df-sdl.git diff --git a/src/game/g_console.pas b/src/game/g_console.pas index 69158ea..97f5c20 100644 --- a/src/game/g_console.pas +++ b/src/game/g_console.pas @@ -48,12 +48,14 @@ procedure g_Console_Add (L: AnsiString; show: Boolean=false); procedure g_Console_Clear (); function g_Console_CommandBlacklisted (C: AnsiString): Boolean; procedure g_Console_ReadConfig (filename: String); +procedure g_Console_WriteConfig (filename: String); function g_Console_Interactive: Boolean; function g_Console_Action (action: Integer): Boolean; function g_Console_FindBind (n: Integer; cmd: AnsiString): Integer; procedure g_Console_BindKey (key: Integer; cmd: AnsiString); procedure g_Console_ProcessBind (key: Integer; down: Boolean); +procedure g_Console_ResetBinds; procedure conwriteln (const s: AnsiString; show: Boolean=false); procedure conwritefln (const s: AnsiString; args: array of const; show: Boolean=false); @@ -513,14 +515,20 @@ begin begin // exec if Length(p) = 2 then - begin - s := GameDir + '/' + p[1]; - g_Console_ReadConfig(s); - end + g_Console_ReadConfig(GameDir + '/' + p[1]) else g_Console_Add('exec