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:
Ozkan Sezer 2011-04-19 17:02:41 +00:00
parent a85d8dcd6a
commit 8dc5750acc

View file

@ -687,8 +687,8 @@ void History_Init (void)
} }
key_linepos = 1; key_linepos = 1;
// if (cl_savehistory.value) hf = fopen(va("%s/%s", host_parms->userdir, HISTORY_FILE_NAME), "rt");
if ((hf = fopen(HISTORY_FILE_NAME, "rt")) != NULL) if (hf != NULL)
{ {
do do
{ {
@ -714,8 +714,8 @@ void History_Shutdown (void)
int i; int i;
FILE *hf; FILE *hf;
// if (cl_savehistory.value) hf = fopen(va("%s/%s", host_parms->userdir, HISTORY_FILE_NAME), "wt");
if ((hf = fopen(HISTORY_FILE_NAME, "wt")) != NULL) if (hf != NULL)
{ {
i = edit_line; i = edit_line;
do do