T3D 1.1 Beta 3 - FS::VerifyWriteAccess() bugged - RESOLVED
by Fyodor "bank" Osokin · in Torque 3D Professional · 03/02/2011 (7:29 am) · 3 replies
Build: T3D 1.1 Beta 3 Pro
Platform: Windows
Target: Access to file system
Issues: FS::VerifyWriteAccess() doesn't use proper path for write-test.
Steps to Repeat:
Set in core/scripts/client/default.cs:
C:/Users/bank/AppData/Roaming/MyProjectName/Shaders
But it fails, as the FS::VerifyWriteAccess() returns false while checking path, as it doesn't take into account the drive letter.
Suggested Fix:
in:
bool FS::VerifyWriteAccess(const Path &path)
the "temp" declaration should be:
Platform: Windows
Target: Access to file system
Issues: FS::VerifyWriteAccess() doesn't use proper path for write-test.
Steps to Repeat:
Set in core/scripts/client/default.cs:
$shaderGen::cachePath = getUserDataDirectory() @"/MyProjectName/Shaders";Expected the shaders to be generated in:
C:/Users/bank/AppData/Roaming/MyProjectName/Shaders
But it fails, as the FS::VerifyWriteAccess() returns false while checking path, as it doesn't take into account the drive letter.
Suggested Fix:
in:
bool FS::VerifyWriteAccess(const Path &path)
the "temp" declaration should be:
String temp = path.isRelative() ? path.getPath() : path.getRoot() + ":" + path.getPath();instead of
String temp = path.getPath();
About the author
Game developer.
Associate David Wyand
Gnometech Inc.
Logged as THREED-1462. Thanks!
- Dave