mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
* Adjustment: Tweak the asset importer to use the Torque VFS functions.
This commit is contained in:
parent
cbe7ee13d6
commit
66f9336995
2 changed files with 29 additions and 19 deletions
|
|
@ -455,7 +455,13 @@ DefineEngineFunction(getDirectoryList, String, ( const char* path, S32 depth ),
|
|||
{
|
||||
// Grab the full path.
|
||||
char fullpath[1024];
|
||||
|
||||
#ifdef TORQUE_SECURE_VFS
|
||||
dMemset(fullpath, 0x00, sizeof(fullpath));
|
||||
dMemcpy(fullpath, path, dStrlen(path));
|
||||
#else
|
||||
Platform::makeFullPathName(String::compare(path, "/") == 0 ? "" : path, fullpath, sizeof(fullpath));
|
||||
#endif
|
||||
|
||||
//dSprintf(fullpath, 511, "%s/%s", Platform::getWorkingDirectory(), path);
|
||||
|
||||
|
|
@ -469,7 +475,11 @@ DefineEngineFunction(getDirectoryList, String, ( const char* path, S32 depth ),
|
|||
|
||||
// Dump the directories.
|
||||
Vector<StringTableEntry> directories;
|
||||
#ifdef TORQUE_SECURE_VFS
|
||||
Torque::FS::DumpDirectories(fullpath, directories, depth, true);
|
||||
#else
|
||||
Platform::dumpDirectories(fullpath, directories, depth, true);
|
||||
#endif
|
||||
|
||||
if( directories.empty() )
|
||||
return "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue