mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-03-17 16:32:37 +00:00
common.c (COM_FindFile): reverted ultra-hacky revs. 627-629. made it to
report files which aren't found only if developer.value >= 2, i.e. used Con_DPrintf2 of fitz for the first time since its creation.. would have been better if I'd implement and use Sys_DPrintf() there. git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@634 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
b1d8f204e0
commit
3f8252bfbd
1 changed files with 3 additions and 8 deletions
|
@ -1505,7 +1505,7 @@ static int COM_FindFile (const char *filename, int *handle, FILE **file,
|
||||||
searchpath_t *search;
|
searchpath_t *search;
|
||||||
char netpath[MAX_OSPATH];
|
char netpath[MAX_OSPATH];
|
||||||
pack_t *pak;
|
pack_t *pak;
|
||||||
int i, findtime, l;
|
int i, findtime;
|
||||||
|
|
||||||
if (file && handle)
|
if (file && handle)
|
||||||
Sys_Error ("COM_FindFile: both handle and file set");
|
Sys_Error ("COM_FindFile: both handle and file set");
|
||||||
|
@ -1580,15 +1580,10 @@ static int COM_FindFile (const char *filename, int *handle, FILE **file,
|
||||||
return 0; /* dummy valid value for COM_FileExists() */
|
return 0; /* dummy valid value for COM_FileExists() */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Con_DPrintf2 ("FindFile: can't find %s\n", filename); /* if(developer.value >= 2) */
|
||||||
// Don't spam about missing pcx textures
|
/* would've been better if I'd implement and use Sys_DPrintf() */
|
||||||
l = strlen(filename);
|
|
||||||
if (l<3 || strcmp (filename+l-3,"pcx") != 0)
|
|
||||||
Con_DPrintf ("FindFile: can't find %s\n", filename);
|
|
||||||
|
|
||||||
if (handle)
|
if (handle)
|
||||||
*handle = -1;
|
*handle = -1;
|
||||||
if (file)
|
if (file)
|
||||||
|
|
Loading…
Reference in a new issue