Browse Source

engine: filesystem: avoid FS_SysFolderExists spam if stat returned ENOTDIR

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

1
engine/common/filesystem.c

@ -2536,6 +2536,7 @@ qboolean FS_SysFolderExists( const char *path )
if( stat( path, &buf ) < 0 ) if( stat( path, &buf ) < 0 )
{ {
if( errno != ENOTDIR )
Con_Reportf( S_ERROR "FS_SysFolderExists: problem while opening dir: %s\n", strerror( errno )); Con_Reportf( S_ERROR "FS_SysFolderExists: problem while opening dir: %s\n", strerror( errno ));
return false; return false;
} }

Loading…
Cancel
Save