Przeglądaj źródła

zip support followup

AzaezelX 4 lat temu
rodzic
commit
36b31ae19d

+ 1 - 1
Engine/source/T3D/assets/GameObjectAsset.cpp

@@ -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.

+ 1 - 1
Engine/source/T3D/assets/ImageAsset.cpp

@@ -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;

+ 1 - 1
Engine/source/T3D/assets/SoundAsset.cpp

@@ -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;

+ 1 - 1
Engine/source/T3D/assets/TerrainAsset.cpp

@@ -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();

+ 2 - 2
Engine/source/T3D/assets/TerrainMaterialAsset.cpp

@@ -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())

+ 2 - 2
Engine/source/ts/tsLastDetail.cpp

@@ -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;