From e62776fa08c5ee4552f24e4bfb2f148804b7d9cc Mon Sep 17 00:00:00 2001 From: Daniel Gibson Date: Fri, 22 May 2015 23:42:23 +0200 Subject: [PATCH] global console-history instead of per-mod history --- src/client/cl_keyboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/cl_keyboard.c b/src/client/cl_keyboard.c index cf537a22..3c8b24cc 100644 --- a/src/client/cl_keyboard.c +++ b/src/client/cl_keyboard.c @@ -789,7 +789,7 @@ Key_WriteConsoleHistory() { int i; char path[MAX_OSPATH]; - Com_sprintf(path, sizeof(path), "%s/history.txt", FS_Gamedir()); + Com_sprintf(path, sizeof(path), "%sconsole_history.txt", Sys_GetHomeDir()); FILE* f = fopen(path, "w"); @@ -828,7 +828,7 @@ Key_ReadConsoleHistory() int i; char path[MAX_OSPATH]; - Com_sprintf(path, sizeof(path), "%s/history.txt", FS_Gamedir()); + Com_sprintf(path, sizeof(path), "%sconsole_history.txt", Sys_GetHomeDir()); FILE* f = fopen(path, "r"); if(f==NULL)