From 5aac5d2a525fa310cf62a3a3b167947bcf04ec76 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Fri, 27 Oct 2023 08:02:45 +0300 Subject: [PATCH] filesystem: VFileSystem009: add pathid support to RemoveFile method --- filesystem/VFileSystem009.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/filesystem/VFileSystem009.cpp b/filesystem/VFileSystem009.cpp index 7bd53f69..28582089 100644 --- a/filesystem/VFileSystem009.cpp +++ b/filesystem/VFileSystem009.cpp @@ -150,7 +150,10 @@ public: void RemoveFile( const char *path, const char *id ) override { - FS_Delete( path ); // FS_Delete is aware of slashes + char dir[MAX_VA_STRING], fullpath[MAX_VA_STRING]; + + Q_snprintf( fullpath, sizeof( fullpath ), "%s/%s", IdToDir( dir, sizeof( dir ), id ), path ); + FS_Delete( fullpath ); // FS_Delete is aware of slashes } void CreateDirHierarchy( const char *path, const char *id ) override