filesystem: do not print error in FS_Delete if file doesn't exist
This commit is contained in:
parent
a862446072
commit
c3a6cad0c1
1 changed files with 1 additions and 1 deletions
|
@ -2694,7 +2694,7 @@ qboolean GAME_EXPORT FS_Delete( const char *path )
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
ret = remove( real_path );
|
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 ));
|
Con_Printf( "%s: failed to delete file %s (%s): %s\n", __FUNCTION__, real_path, path, strerror( errno ));
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue