c5e7fd99d5
- Fix writting files in ~/.tremor instead of ~/.tremor/<game_name> when no "-game <game_name>" argument was given. - Some patches were integrated, so they are removed.
11 lines
343 B
C
11 lines
343 B
C
--- ./keys.c.orig Fri Oct 29 19:15:24 2004
|
|
+++ ./keys.c Tue May 16 14:59:52 2006
|
|
@@ -674,7 +674,7 @@
|
|
FILE *cmdhist;
|
|
cmdhistory_t cmdhistory;
|
|
|
|
- if ((cmdhist = fopen("cmdhist.dat", "rb")))
|
|
+ if ((cmdhist = fopen(va("%s/cmdhist.dat", com_gamedir), "rb")))
|
|
{
|
|
fread (&cmdhistory, sizeof(cmdhistory_t), 1, cmdhist);
|
|
fclose (cmdhist);
|