use ActorUtil::GetWhere

This commit is contained in:
Glenn Maynard
2006-10-09 08:08:59 +00:00
parent 8e8a10f56c
commit f1ca420069
11 changed files with 27 additions and 28 deletions
+3 -4
View File
@@ -31,17 +31,16 @@ void MeterDisplay::Load( RString sStreamPath, float fStreamWidth, RString sTipPa
void MeterDisplay::LoadFromNode( const RString& sDir, const XNode* pNode )
{
LOG->Trace( "MeterDisplay::LoadFromNode(%s,node)", sDir.c_str() );
LOG->Trace( "MeterDisplay::LoadFromNode(%s,node)", ActorUtil::GetWhere(pNode).c_str() );
RString sExpr;
if( !pNode->GetAttrValue( "StreamWidth", sExpr ) )
RageException::Throw( "MeterDisplay in \"%s\" is missing the \"StreamWidth\" attribute.", sDir.c_str() );
m_fStreamWidth = LuaHelpers::RunExpressionF( sExpr );
RageException::Throw( "%s: MeterDisplay: missing the \"StreamWidth\" attribute", ActorUtil::GetWhere(pNode).c_str() );
{
RString sStreamPath;
if( !ActorUtil::GetAttrPath(pNode, "StreamPath", sStreamPath) )
RageException::Throw( "MeterDisplay in \"%s\" is missing the \"StreamPath\" attribute.", sDir.c_str() );
RageException::Throw( "%s: MeterDisplay: missing the \"StreamPath\" attribute", ActorUtil::GetWhere(pNode).c_str() );
ActorUtil::ResolvePath( sStreamPath, sDir );