mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-22 03:41:27 +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];
|
||||
|
||||
extern cvar_t developer;
|
||||
/*
|
||||
|
||||
|
||||
|
@ -1416,7 +1417,8 @@ int COM_FOpenFile (char *filename, FILE **file)
|
|||
for (i=0 ; i<pak->numfiles ; i++)
|
||||
if (!strcmp (pak->files[i].name, filename))
|
||||
{ // found it!
|
||||
Sys_Printf ("PackFile: %s : %s\n",pak->filename, filename);
|
||||
if(developer.value)
|
||||
Sys_Printf ("PackFile: %s : %s\n",pak->filename, filename);
|
||||
// open a new file on the pakfile
|
||||
*file = fopen (pak->filename, "rb");
|
||||
if (!*file)
|
||||
|
@ -1436,7 +1438,8 @@ int COM_FOpenFile (char *filename, FILE **file)
|
|||
if (findtime == -1)
|
||||
continue;
|
||||
|
||||
Sys_Printf ("FindFile: %s\n",netpath);
|
||||
if(developer.value)
|
||||
Sys_Printf ("FindFile: %s\n",netpath);
|
||||
|
||||
*file = fopen (netpath, "rb");
|
||||
return COM_filelength (*file);
|
||||
|
|
|
@ -52,6 +52,8 @@ char com_cmdline[CMDLINE_LENGTH];
|
|||
|
||||
qboolean standard_quake = true, rogue, hipnotic;
|
||||
|
||||
extern cvar_t developer;
|
||||
|
||||
/*
|
||||
|
||||
|
||||
|
@ -1317,7 +1319,8 @@ int COM_FindFile (char *filename, int *handle, FILE **file)
|
|||
for (i=0 ; i<pak->numfiles ; i++)
|
||||
if (!strcmp (pak->files[i].name, filename))
|
||||
{ // found it!
|
||||
Sys_Printf ("PackFile: %s : %s\n",pak->filename, filename);
|
||||
if(developer.value)
|
||||
Sys_Printf ("PackFile: %s : %s\n",pak->filename, filename);
|
||||
if (handle)
|
||||
{
|
||||
*handle = pak->handle;
|
||||
|
@ -1363,7 +1366,8 @@ int COM_FindFile (char *filename, int *handle, FILE **file)
|
|||
strcpy (netpath, cachepath);
|
||||
}
|
||||
|
||||
Sys_Printf ("FindFile: %s\n",netpath);
|
||||
if(developer.value)
|
||||
Sys_Printf ("FindFile: %s\n",netpath);
|
||||
com_filesize = Sys_FileOpenRead (netpath, &i);
|
||||
if (handle)
|
||||
*handle = i;
|
||||
|
|
Loading…
Reference in a new issue