Browse Source

filesystem: do not print error in FS_Delete if file doesn't exist

pull/2/head
Alibek Omarov 1 year ago
parent
commit
c3a6cad0c1
  1. 2
      filesystem/filesystem.c

2
filesystem/filesystem.c

@ -2694,7 +2694,7 @@ qboolean GAME_EXPORT FS_Delete( const char *path ) @@ -2694,7 +2694,7 @@ qboolean GAME_EXPORT FS_Delete( const char *path )
return true;
ret = remove( real_path );
if( ret < 0 )
if( ret < 0 && errno != ENOENT )
{
Con_Printf( "%s: failed to delete file %s (%s): %s\n", __FUNCTION__, real_path, path, strerror( errno ));
return false;

Loading…
Cancel
Save