FileSize?
by Adam Johnston · in Torque Game Builder · 03/21/2006 (3:24 pm) · 2 replies
I think fileSize is wrong
ConsoleFunction(fileSize, bool, 2, 2, "fileSize(fileName) returns filesize or -1 if no file")
{
argc;
Con::expandScriptFilename(scriptFilenameBuffer, sizeof(scriptFilenameBuffer), argv[1]);
return Platform::getFileSize( scriptFilenameBuffer );
}I changed toConsoleFunction(fileSize, S32, 2, 2, "fileSize(fileName) returns filesize or -1 if no file")
{
argc;
Con::expandScriptFilename(scriptFilenameBuffer, sizeof(scriptFilenameBuffer), argv[1]);
return Platform::getFileSize( scriptFilenameBuffer );
}
Associate Justin DuJardin
Default Studio Name
thanks for this bug find. This has been verified to indeed be wrong. It has been fixed and will be included in the next release.
Cheers,
-Justin