Browse Source

engine: filesystem: avoid FS_SysFolderExists spam if stat returned ENOTDIR

pull/2/head
Alibek Omarov 3 years ago
parent
commit
45bf927c74
  1. 3
      engine/common/filesystem.c

3
engine/common/filesystem.c

@ -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…
Cancel
Save