From c3a6cad0c13c8df544ba764baadd8e3fc1fe4728 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 2 Jul 2023 04:49:33 +0300 Subject: [PATCH] filesystem: do not print error in FS_Delete if file doesn't exist --- filesystem/filesystem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filesystem/filesystem.c b/filesystem/filesystem.c index 44f7af30..e3a23286 100644 --- a/filesystem/filesystem.c +++ b/filesystem/filesystem.c @@ -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;