mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-09 07:20:40 +00:00
refactor new IsScriptFile method to be zip-safe
This commit is contained in:
parent
8976250fdf
commit
b8eaefc21e
11 changed files with 30 additions and 28 deletions
|
|
@ -155,14 +155,4 @@ void Platform::setWebDeployment(bool v)
|
|||
gWebDeployment = v;
|
||||
}
|
||||
|
||||
bool Platform::isScriptFile(const char* pFilePath)
|
||||
{
|
||||
return (isFile(pFilePath)
|
||||
|| isFile(pFilePath + String(".dso"))
|
||||
|| isFile(pFilePath + String(".mis"))
|
||||
|| isFile(pFilePath + String(".mis.dso"))
|
||||
|| isFile(pFilePath + String(".gui"))
|
||||
|| isFile(pFilePath + String(".gui.dso"))
|
||||
|| isFile(pFilePath + String("." TORQUE_SCRIPT_EXTENSION))
|
||||
|| isFile(pFilePath + String("." TORQUE_SCRIPT_EXTENSION) + String(".dso")));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -289,7 +289,6 @@ namespace Platform
|
|||
bool hasSubDirectory( const char *pPath );
|
||||
bool getFileTimes(const char *filePath, FileTime *createTime, FileTime *modifyTime);
|
||||
bool isFile(const char *pFilePath);
|
||||
bool isScriptFile(const char* pFilePath);
|
||||
S32 getFileSize(const char *pFilePath);
|
||||
bool isDirectory(const char *pDirPath);
|
||||
bool isSubDirectory(const char *pParent, const char *pDir);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue