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

@ -166,7 +166,7 @@ void MaterialAsset::initializeAsset()
mScriptPath = getOwned() ? expandAssetFilePath(mScriptFile) : mScriptPath;
if (Platform::isScriptFile(mScriptPath))
if (Torque::FS::IsScriptFile(mScriptPath))
Con::executeFile(mScriptPath, false, false);
loadMaterial();
@ -176,7 +176,7 @@ void MaterialAsset::onAssetRefresh()
{
mScriptPath = getOwned() ? expandAssetFilePath(mScriptFile) : mScriptPath;
if (Platform::isScriptFile(mScriptPath))
if (Torque::FS::IsScriptFile(mScriptPath))
Con::executeFile(mScriptPath, false, false);
loadMaterial();