mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-23 13:25:36 +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
|
|
@ -212,8 +212,13 @@ ImplementEnumType(_TamlFormatMode,
|
|||
AssertFatal(pSimObject != NULL, "Cannot write a NULL object.");
|
||||
AssertFatal(pFilename != NULL, "Cannot write to a NULL filename.");
|
||||
|
||||
// Expand the file-name into the file-path buffer.
|
||||
// Expand the file-name into the file-path buffer unless we're a secure VFS
|
||||
#ifndef TORQUE_SECURE_VFS
|
||||
Con::expandToolScriptFilename(mFilePathBuffer, sizeof(mFilePathBuffer), pFilename);
|
||||
#else
|
||||
dMemset(mFilePathBuffer, 0x00, sizeof(mFilePathBuffer));
|
||||
dMemcpy(mFilePathBuffer, pFilename, dStrlen(pFilename));
|
||||
#endif
|
||||
|
||||
FileStream stream;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue