2
0
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:
Alibek Omarov 2023-07-02 04:49:33 +03:00
parent a862446072
commit c3a6cad0c1

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;