mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +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
|
|
@ -136,7 +136,7 @@ void CubemapAsset::initializeAsset()
|
|||
{
|
||||
mScriptFile = expandAssetFilePath(mScriptFile);
|
||||
|
||||
if(Platform::isScriptFile(mScriptFile))
|
||||
if(Torque::FS::IsScriptFile(mScriptFile))
|
||||
Con::executeFile(mScriptFile, false, false);
|
||||
}
|
||||
|
||||
|
|
@ -144,7 +144,7 @@ void CubemapAsset::onAssetRefresh()
|
|||
{
|
||||
mScriptFile = expandAssetFilePath(mScriptFile);
|
||||
|
||||
if (Platform::isScriptFile(mScriptFile))
|
||||
if (Torque::FS::IsScriptFile(mScriptFile))
|
||||
Con::executeFile(mScriptFile, false, false);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue