global console-history instead of per-mod history

This commit is contained in:
Daniel Gibson 2015-05-22 23:42:23 +02:00
parent c79257b5d8
commit e62776fa08

View file

@ -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)