mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-15 07:56:36 +00:00
624ff38926
- Use Q1DIR directly, instead of assigning it to DATADIR. Approved by: garga (mentor, implicitly)
16 lines
496 B
C
16 lines
496 B
C
--- ./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);
|