engine: filesystem: avoid FS_SysFolderExists spam if stat returned ENOTDIR
This commit is contained in:
parent
347c6d6a91
commit
45bf927c74
1 changed files with 2 additions and 1 deletions
|
@ -2536,7 +2536,8 @@ qboolean FS_SysFolderExists( const char *path )
|
|||
|
||||
if( stat( path, &buf ) < 0 )
|
||||
{
|
||||
Con_Reportf( S_ERROR "FS_SysFolderExists: problem while opening dir: %s\n", strerror( errno ));
|
||||
if( errno != ENOTDIR )
|
||||
Con_Reportf( S_ERROR "FS_SysFolderExists: problem while opening dir: %s\n", strerror( errno ));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue