mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-25 11:19:59 +01:00
filesystem: do not print error in FS_Delete if file doesn't exist
This commit is contained in:
parent
a862446072
commit
c3a6cad0c1
@ -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…
Reference in New Issue
Block a user