mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-30 16:54:29 +00:00
filesystem: VFileSystem009: add pathid support to RemoveFile method
This commit is contained in:
parent
061b50404d
commit
5aac5d2a52
@ -150,7 +150,10 @@ public:
|
|||||||
|
|
||||||
void RemoveFile( const char *path, const char *id ) override
|
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
|
void CreateDirHierarchy( const char *path, const char *id ) override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user