X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fg_console.pas;h=388b4524d97d6108a536d865614ce2e383b70614;hp=69158eae2eb830bacfa8b785e2f09b35b28dde35;hb=228d34465e847f7953a4b2a9e6a32c3b5d2316ae;hpb=7301e8529da2fdfdae50653f91c1f9597df65541 diff --git a/src/game/g_console.pas b/src/game/g_console.pas index 69158ea..388b452 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