use ActorUtil::GetAttrPath

This commit is contained in:
Glenn Maynard
2006-10-09 06:55:28 +00:00
parent b113467c20
commit 1f6aaf18b9
7 changed files with 13 additions and 43 deletions
+1 -4
View File
@@ -28,12 +28,9 @@ void HoldJudgment::Load( const RString &sPath )
void HoldJudgment::LoadFromNode( const RString& sDir, const XNode* pNode )
{
RString sFile;
if( !pNode->GetAttrValue("File", sFile) )
if( ActorUtil::GetAttrPath(pNode, "File", sFile) )
RageException::Throw( "HoldJudgment node in \"%s\" is missing the attribute \"File\"", sDir.c_str() );
if( sFile.Left(1) != "/" )
sFile = sDir+sFile;
CollapsePath( sFile );
Load( sFile );