mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
Merge pull request #988 from Azaezel/alpha41/getDirectoryList
fix getDirectoryList
This commit is contained in:
commit
6cb34ab3e9
1 changed files with 1 additions and 3 deletions
|
|
@ -489,9 +489,7 @@ DefineEngineFunction(getDirectoryList, String, ( const char* path, S32 depth ),
|
||||||
// Append a trailing backslash if it's not present already.
|
// Append a trailing backslash if it's not present already.
|
||||||
if (fullpath[dStrlen(fullpath) - 1] != '/')
|
if (fullpath[dStrlen(fullpath) - 1] != '/')
|
||||||
{
|
{
|
||||||
S32 pos = dStrlen(fullpath);
|
dStrcat(fullpath, "/\0", 1024);
|
||||||
fullpath[pos - 1] = '/';
|
|
||||||
fullpath[pos] = '\0';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dump the directories.
|
// Dump the directories.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue