mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-14 00:50:38 +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;
|
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
|
||||||
|
|
Loading…
Reference in a new issue