refactor new IsScriptFile method to be zip-safe

This commit is contained in:
AzaezelX 2021-07-22 20:55:46 -05:00
parent 8976250fdf
commit b8eaefc21e
11 changed files with 30 additions and 28 deletions

View file

@ -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")));
}