mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 07:34:45 +00:00
* Adjustment: Change Platform::makeFullPathName to use "game:/" as cwd if none is specified.
This commit is contained in:
parent
2a865d387a
commit
35b348f93c
1 changed files with 5 additions and 0 deletions
|
|
@ -328,8 +328,13 @@ char * Platform::makeFullPathName(const char *path, char *buffer, U32 size, cons
|
||||||
// [rene, 05/05/2008] Based on overall file handling in Torque, it does not seem to make
|
// [rene, 05/05/2008] Based on overall file handling in Torque, it does not seem to make
|
||||||
// that much sense to me to base things off the current working directory here.
|
// that much sense to me to base things off the current working directory here.
|
||||||
|
|
||||||
|
#ifndef TORQUE_SCECURE_VFS
|
||||||
if(cwd == NULL)
|
if(cwd == NULL)
|
||||||
cwd = Con::isCurrentScriptToolScript() ? Platform::getMainDotCsDir() : Platform::getCurrentDirectory();
|
cwd = Con::isCurrentScriptToolScript() ? Platform::getMainDotCsDir() : Platform::getCurrentDirectory();
|
||||||
|
#else
|
||||||
|
if (cwd == NULL)
|
||||||
|
cwd = "game:/";
|
||||||
|
#endif
|
||||||
|
|
||||||
dStrncpy(buffer, cwd, size);
|
dStrncpy(buffer, cwd, size);
|
||||||
buffer[size-1] = 0;
|
buffer[size-1] = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue