Skip to content

Commit

Permalink
filesystem: VFileSystem009: add pathid support to RemoveFile method
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Oct 27, 2023
1 parent 061b504 commit 5aac5d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion filesystem/VFileSystem009.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ class CXashFS : public IVFileSystem009

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
Expand Down

0 comments on commit 5aac5d2

Please sign in to comment.