mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-07 14:51:08 +00:00
Update ttvfs to new version
This commit is contained in:
parent
209ad526c6
commit
8026cdd905
43 changed files with 2124 additions and 2427 deletions
|
@ -8,24 +8,16 @@
|
|||
VFS_NAMESPACE_START
|
||||
|
||||
VFSBase::VFSBase()
|
||||
: ref(this)
|
||||
#ifdef VFS_USE_HASHMAP
|
||||
, _hash(0)
|
||||
#endif
|
||||
, _origin(NULL)
|
||||
{
|
||||
}
|
||||
|
||||
// call this only with a lock held!
|
||||
void VFSBase::_setName(const char *n)
|
||||
{
|
||||
if(!n)
|
||||
return;
|
||||
_fullname = FixPath(n);
|
||||
_name = PathToFileName(_fullname.c_str());
|
||||
#ifdef VFS_USE_HASHMAP
|
||||
_hash = STRINGHASH(_name);
|
||||
#endif
|
||||
_fullname = n;
|
||||
FixPath(_fullname);
|
||||
_name = GetBaseNameFromPath(_fullname.c_str());
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue