mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 15:31:39 +00:00
common.c (COM_FindFile): Made PackFile debug message prints into Con_DPrintf so
that they don't spam the console. git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@9 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
144ab0583f
commit
c597717cf4
1 changed files with 3 additions and 3 deletions
|
@ -1471,7 +1471,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!
|
||||||
Sys_Printf ("PackFile: %s : %s\n",pak->filename, filename);
|
Con_DPrintf ("PackFile: %s : %s\n",pak->filename, filename);
|
||||||
if (handle)
|
if (handle)
|
||||||
{
|
{
|
||||||
*handle = pak->handle;
|
*handle = pak->handle;
|
||||||
|
@ -1523,7 +1523,7 @@ int COM_FindFile (char *filename, int *handle, FILE **file)
|
||||||
strcpy (netpath, cachepath);
|
strcpy (netpath, cachepath);
|
||||||
}
|
}
|
||||||
|
|
||||||
Sys_Printf ("FindFile: %s\n",netpath);
|
Con_DPrintf ("FindFile: %s\n",netpath);
|
||||||
com_filesize = Sys_FileOpenRead (netpath, &i);
|
com_filesize = Sys_FileOpenRead (netpath, &i);
|
||||||
if (handle)
|
if (handle)
|
||||||
*handle = i;
|
*handle = i;
|
||||||
|
@ -1537,7 +1537,7 @@ int COM_FindFile (char *filename, int *handle, FILE **file)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Sys_Printf ("FindFile: can't find %s\n", filename);
|
Con_DPrintf ("FindFile: can't find %s\n", filename);
|
||||||
|
|
||||||
if (handle)
|
if (handle)
|
||||||
*handle = -1;
|
*handle = -1;
|
||||||
|
|
Loading…
Reference in a new issue