From 8dc5750accb4bf33c545bd1eec0fb76d6e53d053 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Tue, 19 Apr 2011 17:02:41 +0000 Subject: [PATCH] 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 --- Quake/keys.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Quake/keys.c b/Quake/keys.c index a35385b4..dee3cc8d 100644 --- a/Quake/keys.c +++ b/Quake/keys.c @@ -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