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

This commit is contained in:
Alibek Omarov 2023-07-02 04:49:33 +03:00
parent a862446072
commit c3a6cad0c1
1 changed files with 1 additions and 1 deletions

View File

@ -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;