mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
keys.c (History_Init, History_Shutdown): use host_parms->userdir.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@444 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
a85d8dcd6a
commit
8dc5750acc
1 changed files with 4 additions and 4 deletions
|
@ -687,8 +687,8 @@ void History_Init (void)
|
|||
}
|
||||
key_linepos = 1;
|
||||
|
||||
// if (cl_savehistory.value)
|
||||
if ((hf = fopen(HISTORY_FILE_NAME, "rt")) != NULL)
|
||||
hf = fopen(va("%s/%s", host_parms->userdir, HISTORY_FILE_NAME), "rt");
|
||||
if (hf != NULL)
|
||||
{
|
||||
do
|
||||
{
|
||||
|
@ -714,8 +714,8 @@ void History_Shutdown (void)
|
|||
int i;
|
||||
FILE *hf;
|
||||
|
||||
// if (cl_savehistory.value)
|
||||
if ((hf = fopen(HISTORY_FILE_NAME, "wt")) != NULL)
|
||||
hf = fopen(va("%s/%s", host_parms->userdir, HISTORY_FILE_NAME), "wt");
|
||||
if (hf != NULL)
|
||||
{
|
||||
i = edit_line;
|
||||
do
|
||||
|
|
Loading…
Reference in a new issue