Changeset View
Changeset View
Standalone View
Standalone View
source/lib/file/vfs/vfs.cpp
Show First 20 Lines • Show All 215 Lines • ▼ Show 20 Lines | virtual Status GetRealPath(const VfsPath& pathname, OsPath& realPathname) | ||||
realPathname = file->Loader()->Path() / pathname.Filename(); | realPathname = file->Loader()->Path() / pathname.Filename(); | ||||
return INFO::OK; | return INFO::OK; | ||||
} | } | ||||
virtual Status GetDirectoryRealPath(const VfsPath& pathname, OsPath& realPathname) | virtual Status GetDirectoryRealPath(const VfsPath& pathname, OsPath& realPathname) | ||||
{ | { | ||||
ScopedLock s; | ScopedLock s; | ||||
VfsDirectory* directory; | VfsDirectory* directory; | ||||
WARN_RETURN_STATUS_IF_ERR(vfs_Lookup(pathname, &m_rootDirectory, directory, NULL)); | WARN_RETURN_STATUS_IF_ERR(vfs_Lookup(pathname, &m_rootDirectory, directory, nullptr)); | ||||
realPathname = directory->AssociatedDirectory()->Path(); | realPathname = directory->AssociatedDirectory()->Path(); | ||||
return INFO::OK; | return INFO::OK; | ||||
} | } | ||||
virtual Status GetVirtualPath(const OsPath& realPathname, VfsPath& pathname) | virtual Status GetVirtualPath(const OsPath& realPathname, VfsPath& pathname) | ||||
{ | { | ||||
ScopedLock s; | ScopedLock s; | ||||
const OsPath realPath = realPathname.Parent()/""; | const OsPath realPath = realPathname.Parent()/""; | ||||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator