mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-25 13:21:04 +00:00
added dan olson's patch
This patch keeps all the "PackFile" and "FindFile" messages from flooding stdout unless the developer cvar is set to 1.
This commit is contained in:
parent
acc475fa16
commit
36a1b4d7ae
2 changed files with 11 additions and 4 deletions
|
@ -54,6 +54,7 @@ qboolean standard_quake = true, rogue, hipnotic;
|
||||||
|
|
||||||
char gamedirfile[MAX_OSPATH];
|
char gamedirfile[MAX_OSPATH];
|
||||||
|
|
||||||
|
extern cvar_t developer;
|
||||||
/*
|
/*
|
||||||
|
|
||||||
|
|
||||||
|
@ -1416,6 +1417,7 @@ int COM_FOpenFile (char *filename, FILE **file)
|
||||||
for (i=0 ; i<pak->numfiles ; i++)
|
for (i=0 ; i<pak->numfiles ; i++)
|
||||||
if (!strcmp (pak->files[i].name, filename))
|
if (!strcmp (pak->files[i].name, filename))
|
||||||
{ // found it!
|
{ // found it!
|
||||||
|
if(developer.value)
|
||||||
Sys_Printf ("PackFile: %s : %s\n",pak->filename, filename);
|
Sys_Printf ("PackFile: %s : %s\n",pak->filename, filename);
|
||||||
// open a new file on the pakfile
|
// open a new file on the pakfile
|
||||||
*file = fopen (pak->filename, "rb");
|
*file = fopen (pak->filename, "rb");
|
||||||
|
@ -1436,6 +1438,7 @@ int COM_FOpenFile (char *filename, FILE **file)
|
||||||
if (findtime == -1)
|
if (findtime == -1)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if(developer.value)
|
||||||
Sys_Printf ("FindFile: %s\n",netpath);
|
Sys_Printf ("FindFile: %s\n",netpath);
|
||||||
|
|
||||||
*file = fopen (netpath, "rb");
|
*file = fopen (netpath, "rb");
|
||||||
|
|
|
@ -52,6 +52,8 @@ char com_cmdline[CMDLINE_LENGTH];
|
||||||
|
|
||||||
qboolean standard_quake = true, rogue, hipnotic;
|
qboolean standard_quake = true, rogue, hipnotic;
|
||||||
|
|
||||||
|
extern cvar_t developer;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
|
|
||||||
|
@ -1317,6 +1319,7 @@ int COM_FindFile (char *filename, int *handle, FILE **file)
|
||||||
for (i=0 ; i<pak->numfiles ; i++)
|
for (i=0 ; i<pak->numfiles ; i++)
|
||||||
if (!strcmp (pak->files[i].name, filename))
|
if (!strcmp (pak->files[i].name, filename))
|
||||||
{ // found it!
|
{ // found it!
|
||||||
|
if(developer.value)
|
||||||
Sys_Printf ("PackFile: %s : %s\n",pak->filename, filename);
|
Sys_Printf ("PackFile: %s : %s\n",pak->filename, filename);
|
||||||
if (handle)
|
if (handle)
|
||||||
{
|
{
|
||||||
|
@ -1363,6 +1366,7 @@ int COM_FindFile (char *filename, int *handle, FILE **file)
|
||||||
strcpy (netpath, cachepath);
|
strcpy (netpath, cachepath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(developer.value)
|
||||||
Sys_Printf ("FindFile: %s\n",netpath);
|
Sys_Printf ("FindFile: %s\n",netpath);
|
||||||
com_filesize = Sys_FileOpenRead (netpath, &i);
|
com_filesize = Sys_FileOpenRead (netpath, &i);
|
||||||
if (handle)
|
if (handle)
|
||||||
|
|
Loading…
Reference in a new issue