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