mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
zip support followup
This commit is contained in:
parent
b8eaefc21e
commit
36b31ae19d
|
|
@ -192,7 +192,7 @@ void GameObjectAsset::setTAMLFile(const char* pTAMLFile)
|
|||
|
||||
const char* GameObjectAsset::create()
|
||||
{
|
||||
if (!Platform::isFile(mTAMLFile))
|
||||
if (!Torque::FS::IsFile(mTAMLFile))
|
||||
return "";
|
||||
|
||||
// Set the format mode.
|
||||
|
|
|
|||
|
|
@ -263,7 +263,7 @@ void ImageAsset::loadImage()
|
|||
{
|
||||
if (mImagePath)
|
||||
{
|
||||
if (!Platform::isFile(mImagePath))
|
||||
if (!Torque::FS::IsFile(mImagePath))
|
||||
{
|
||||
Con::errorf("ImageAsset::initializeAsset: Attempted to load file %s but it was not valid!", mImageFileName);
|
||||
mLoadedState = BadFileReference;
|
||||
|
|
|
|||
|
|
@ -218,7 +218,7 @@ bool SoundAsset::loadSound()
|
|||
{
|
||||
if (mSoundPath)
|
||||
{
|
||||
if (!Platform::isFile(mSoundPath))
|
||||
if (!Torque::FS::IsFile(mSoundPath))
|
||||
{
|
||||
Con::errorf("SoundAsset::initializeAsset: Attempted to load file %s but it was not valid!", mSoundFile);
|
||||
mLoadedState = BadFileReference;
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ void TerrainAsset::setTerrainFileName(const char* pScriptFile)
|
|||
|
||||
bool TerrainAsset::loadTerrain()
|
||||
{
|
||||
if (!Platform::isFile(mTerrainFilePath))
|
||||
if (!Torque::FS::IsFile(mTerrainFilePath))
|
||||
return false;
|
||||
|
||||
mTerrMaterialAssets.clear();
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ void TerrainMaterialAsset::initializeAsset()
|
|||
|
||||
mScriptPath = expandAssetFilePath(mScriptFile);
|
||||
|
||||
if (Platform::isFile(mScriptPath))
|
||||
if (Torque::FS::IsScriptFile(mScriptPath))
|
||||
Con::executeFile(mScriptPath, false, false);
|
||||
}
|
||||
|
||||
|
|
@ -129,7 +129,7 @@ void TerrainMaterialAsset::onAssetRefresh()
|
|||
{
|
||||
mScriptPath = expandAssetFilePath(mScriptFile);
|
||||
|
||||
if (Platform::isFile(mScriptPath))
|
||||
if (Torque::FS::IsScriptFile(mScriptPath))
|
||||
Con::executeFile(mScriptPath, false, false);
|
||||
|
||||
if (mMatDefinitionName != StringTable->EmptyString())
|
||||
|
|
|
|||
|
|
@ -175,12 +175,12 @@ void TSLastDetail::update( bool forceUpdate )
|
|||
// comparisons... this might be different if the DAEs have been
|
||||
// deleted from the install.
|
||||
String shapeFile( mCachePath );
|
||||
if ( !Platform::isFile( shapeFile ) )
|
||||
if ( !Torque::FS::IsFile( shapeFile ) )
|
||||
{
|
||||
Torque::Path path(shapeFile);
|
||||
path.setExtension("cached.dts");
|
||||
shapeFile = path.getFullPath();
|
||||
if ( !Platform::isFile( shapeFile ) )
|
||||
if ( !Torque::FS::IsFile( shapeFile ) )
|
||||
{
|
||||
Con::errorf( "TSLastDetail::update - '%s' could not be found!", mCachePath.c_str() );
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue