Merge pull request #1460 from Azaezel/FileFallbackFoulups

fillin for fallbacks for filesystem funcs
This commit is contained in:
Areloch 2015-11-16 21:42:22 -06:00
commit 703fff01fb

View file

@ -137,7 +137,7 @@ static S32 buildFileList(const char* pattern, bool recurse, bool multiMatch)
//-----------------------------------------------------------------------------
DefineEngineFunction( findFirstFile, String, ( const char* pattern, bool recurse ), ( true ),
DefineEngineFunction( findFirstFile, String, ( const char* pattern, bool recurse ), ( "", true ),
"@brief Returns the first file in the directory system matching the given pattern.\n\n"
"Use the corresponding findNextFile() to step through "
@ -209,7 +209,7 @@ DefineEngineFunction( findNextFile, String, ( const char* pattern ), ( "" ),
//-----------------------------------------------------------------------------
DefineEngineFunction( getFileCount, S32, ( const char* pattern, bool recurse ), ( true ),
DefineEngineFunction( getFileCount, S32, ( const char* pattern, bool recurse ), ( "", true ),
"@brief Returns the number of files in the directory tree that match the given patterns\n\n"
"This function differs from getFileCountMultiExpr() in that it supports a single search "
@ -245,7 +245,7 @@ DefineEngineFunction( getFileCount, S32, ( const char* pattern, bool recurse ),
//-----------------------------------------------------------------------------
DefineEngineFunction(findFirstFileMultiExpr, String, ( const char* pattern, bool recurse ), (true),
DefineEngineFunction(findFirstFileMultiExpr, String, ( const char* pattern, bool recurse ), ( "", true),
"@brief Returns the first file in the directory system matching the given patterns.\n\n"
"Use the corresponding findNextFileMultiExpr() to step through "
@ -327,7 +327,7 @@ DefineEngineFunction(findNextFileMultiExpr, String, ( const char* pattern ), (""
return sgFindFilesResults[sgFindFilesPos++];
}
DefineEngineFunction(getFileCountMultiExpr, S32, ( const char* pattern, bool recurse ), (true),
DefineEngineFunction(getFileCountMultiExpr, S32, ( const char* pattern, bool recurse ), ( "", true),
"@brief Returns the number of files in the directory tree that match the given patterns\n\n"
"If you're interested in a list of files that match the given patterns and not just "
@ -452,7 +452,7 @@ DefineEngineFunction(stopFileChangeNotifications, void, (),,
}
DefineEngineFunction(getDirectoryList, String, ( const char* path, S32 depth ), ( 0 ),
DefineEngineFunction(getDirectoryList, String, ( const char* path, S32 depth ), ( "", 0 ),
"@brief Gathers a list of directories starting at the given path.\n\n"
"@param path String containing the path of the directory\n"
@ -686,7 +686,7 @@ DefineEngineFunction(getWorkingDirectory, String, (),,
// are just string processing functions. They are needed by the 3D tools which
// are not currently built with TORQUE_TOOLS defined.
DefineEngineFunction(makeFullPath, String, ( const char* path, const char* cwd ), (""),
DefineEngineFunction(makeFullPath, String, ( const char* path, const char* cwd ), ( "", ""),
"@brief Converts a relative file path to a full path\n\n"
"For example, \"./console.log\" becomes \"C:/Torque/t3d/examples/FPS Example/game/console.log\"\n"
@ -701,7 +701,7 @@ DefineEngineFunction(makeFullPath, String, ( const char* path, const char* cwd )
return buf;
}
DefineEngineFunction(makeRelativePath, String, ( const char* path, const char* to ), (""),
DefineEngineFunction(makeRelativePath, String, ( const char* path, const char* to ), ( "", ""),
"@brief Turns a full or local path to a relative one\n\n"
"For example, \"./game/art\" becomes \"game/art\"\n"
@ -714,7 +714,7 @@ DefineEngineFunction(makeRelativePath, String, ( const char* path, const char* t
return Platform::makeRelativePathName( path, dStrlen(to) > 1 ? to : NULL );
}
DefineEngineFunction(pathConcat, String, ( const char* path, const char* file),,
DefineEngineFunction(pathConcat, String, ( const char* path, const char* file), ( "", ""),
"@brief Combines two separate strings containing a file path and file name together into a single string\n\n"
"@param path String containing file path\n"
@ -783,7 +783,7 @@ DefineEngineFunction( openFile, void, ( const char* file ),,
//-----------------------------------------------------------------------------
DefineEngineFunction( pathCopy, bool, ( const char* fromFile, const char* toFile, bool noOverwrite ), ( true ),
DefineEngineFunction( pathCopy, bool, ( const char* fromFile, const char* toFile, bool noOverwrite ), ( "", "", true ),
"@brief Copy a file to a new location.\n"
"@param fromFile %Path of the file to copy.\n"
"@param toFile %Path where to copy @a fromFile to.\n"