mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-24 05:45: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
|
|
@ -119,12 +119,12 @@ void GUIAsset::initializeAsset()
|
|||
{
|
||||
mGUIPath = expandAssetFilePath(mGUIFile);
|
||||
|
||||
if (Platform::isScriptFile(mGUIPath))
|
||||
if (Torque::FS::IsScriptFile(mGUIPath))
|
||||
Con::executeFile(mGUIPath, false, false);
|
||||
|
||||
mScriptPath = expandAssetFilePath(mScriptFile);
|
||||
|
||||
if (Platform::isScriptFile(mScriptPath))
|
||||
if (Torque::FS::IsScriptFile(mScriptPath))
|
||||
Con::executeFile(mScriptPath, false, false);
|
||||
}
|
||||
|
||||
|
|
@ -132,12 +132,12 @@ void GUIAsset::onAssetRefresh()
|
|||
{
|
||||
mGUIPath = expandAssetFilePath(mGUIFile);
|
||||
|
||||
if (Platform::isScriptFile(mGUIPath))
|
||||
if (Torque::FS::IsScriptFile(mGUIPath))
|
||||
Con::executeFile(mGUIPath, false, false);
|
||||
|
||||
mScriptPath = expandAssetFilePath(mScriptFile);
|
||||
|
||||
if (Platform::isScriptFile(mScriptPath))
|
||||
if (Torque::FS::IsScriptFile(mScriptPath))
|
||||
Con::executeFile(mScriptPath, false, false);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue