mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-14 12:13:46 +00:00
new method isScriptfile. operates like isFIle, but also checks variations on extentions
This commit is contained in:
parent
313466f57c
commit
38b565e12a
2 changed files with 12 additions and 1 deletions
|
|
@ -155,4 +155,14 @@ 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")));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue