mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-05 21:40:31 +00:00
* Feature: Initial secure VFS implementation with asset import capability.
This commit is contained in:
parent
d9bedbe31c
commit
277cdf67b0
12 changed files with 220 additions and 10 deletions
|
|
@ -595,6 +595,7 @@ String Platform::FS::getAssetDir()
|
|||
/// file systems.
|
||||
bool Platform::FS::InstallFileSystems()
|
||||
{
|
||||
#ifndef TORQUE_SECURE_VFS
|
||||
Platform::FS::Mount( "/", Platform::FS::createNativeFS( String() ) );
|
||||
|
||||
// Setup the current working dir.
|
||||
|
|
@ -611,6 +612,7 @@ bool Platform::FS::InstallFileSystems()
|
|||
// Mount the home directory
|
||||
if (char* home = getenv("HOME"))
|
||||
Platform::FS::Mount( "home", Platform::FS::createNativeFS(home) );
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue