mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Converts all game, gui editor, and system classes to utilize assets
Processed core, tools and default modules to utilize assets Converted all console types that were string based, such as TypeImageFilename to utilize const char*/the string table, which avoids a lot of type swapping shenanigans and avoids string corruption Removed unneeded MainEditor mockup module Removed some unused/duplicate image assets from the tools
This commit is contained in:
parent
83b0432283
commit
5525f8ecdd
1708 changed files with 19619 additions and 4596 deletions
|
|
@ -133,7 +133,7 @@ bool TheoraTextureObject::onAdd()
|
|||
if( !Parent::onAdd() )
|
||||
return false;
|
||||
|
||||
if( mFilename.isEmpty() )
|
||||
if( mFilename == StringTable->EmptyString())
|
||||
{
|
||||
Con::errorf( "TheoraTextureObject::onAdd - 'filename' must be set" );
|
||||
return false;
|
||||
|
|
@ -171,11 +171,11 @@ void TheoraTextureObject::onRemove()
|
|||
|
||||
void TheoraTextureObject::play()
|
||||
{
|
||||
if( mTheoraTexture.getFilename().isEmpty() || mTheoraTexture.getFilename() != mFilename )
|
||||
if( mTheoraTexture.getFilename().isEmpty() || mTheoraTexture.getFilename() != String(mFilename) )
|
||||
{
|
||||
if( !mTheoraTexture.setFile( mFilename, mSFXDescription ) )
|
||||
{
|
||||
Con::errorf( "TheoraTextureObject::play - Could not load video '%s'", mFilename.c_str() );
|
||||
Con::errorf( "TheoraTextureObject::play - Could not load video '%s'", mFilename );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue