aboutsummaryrefslogtreecommitdiffstats
path: root/games/joequake/files/patch-console.c
blob: 3bdb8166abc3dae08dce1e66758167b7bb7087b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- ./console.c.orig	Sun Jan  8 18:27:46 2006
+++ ./console.c	Sat May 20 10:00:24 2006
@@ -205,8 +205,11 @@
 */
 void Con_Init (void)
 {
+	char	qclog_path[MAX_OSPATH];
+
+	snprintf(qclog_path, sizeof(qclog_path), "%s/qconsole.log", com_gamedir);
 	if (COM_CheckParm("-condebug"))
-		qconsole_log = fopen (va("%s/joequake/qconsole.log", com_basedir), "a");
+		qconsole_log = fopen (qclog_path, "a");
 
 	con_text = Hunk_AllocName (CON_TEXTSIZE, "context");
 	memset (con_text, ' ', CON_TEXTSIZE);