mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Console Refactor
This commit is contained in:
parent
626de074cc
commit
89b0c7f73b
89 changed files with 1883 additions and 1553 deletions
|
|
@ -37,6 +37,8 @@
|
|||
#include "core/module.h"
|
||||
#include "math/mathIO.h"
|
||||
#include "math/mathTypes.h"
|
||||
#include "console/simBase.h"
|
||||
#include "console/engineAPI.h"
|
||||
|
||||
|
||||
IMPLEMENT_CO_DATABLOCK_V1( SFXDescription );
|
||||
|
|
@ -455,7 +457,7 @@ bool SFXDescription::onAdd()
|
|||
const char* channelValue = getDataField( sChannel, NULL );
|
||||
if( channelValue && channelValue[ 0 ] )
|
||||
{
|
||||
ConsoleValue result = Con::evaluatef( "return sfxOldChannelToGroup( %s );", channelValue );
|
||||
ConsoleValue result = Con::executef("sfxOldChannelToGroup", channelValue);
|
||||
const char* group = result.getString();
|
||||
if( !Sim::findObject( group, mSourceGroup ) )
|
||||
Con::errorf( "SFXDescription::onAdd - could not resolve channel '%s' to SFXSource", channelValue );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue