zip support followup

This commit is contained in:
AzaezelX 2021-07-22 21:27:13 -05:00
parent b8eaefc21e
commit 36b31ae19d
6 changed files with 8 additions and 8 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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