mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: filesystem: avoid FS_SysFolderExists spam if stat returned ENOTDIR
This commit is contained in:
parent
347c6d6a91
commit
45bf927c74
@ -2536,7 +2536,8 @@ qboolean FS_SysFolderExists( const char *path )
|
|||||||
|
|
||||||
if( stat( path, &buf ) < 0 )
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user