* BugFix: When querying against root with Torque::FS::DumpDirectories, correctly return directories with their path.

* Adjustment: Add commenting to some of the new programming.
* Adjustment: Tweak fileCreatedTime and fileModifiedTime functions to use the VFS.
This commit is contained in:
Robert MacGregor 2021-12-20 19:26:32 -05:00
parent b63122ea76
commit 0e93373824
7 changed files with 77 additions and 34 deletions

View file

@ -50,12 +50,7 @@ bool MountDefaults()
return false;
#ifdef TORQUE_SECURE_VFS
// Set working directory to where the executable is
StringTableEntry executablePath = Platform::getExecutablePath();
SetCwd(executablePath);
// FIXME: Should we use the asset path here as well?
mounted = Mount("/", createNativeFS(executablePath));
mounted = Mount("/", createNativeFS(path));
if (!mounted)
{
return false;