add GetXML overload for convenience

This commit is contained in:
Chris Danford
2005-06-16 03:08:45 +00:00
parent 11bc71c826
commit 63eebeb75e
3 changed files with 19 additions and 4 deletions
+1 -4
View File
@@ -23,7 +23,6 @@
#include "XmlFile.h"
#include "BackgroundUtil.h"
#include "song.h"
#include "RageFileDriverMemory.h"
ThemeMetric<float> LEFT_EDGE ("Background","LeftEdge");
ThemeMetric<float> TOP_EDGE ("Background","TopEdge");
@@ -768,9 +767,7 @@ void BackgroundImpl::Layer::UpdateCurBGChange( const Song *pSong, float fLastMus
if( iter == m_BGAnimations.end() )
{
XNode *pNode = change.m_def.CreateNode();
RageFileObjMem f;
pNode->GetXML( f, NULL );
LOG->Warn( "Tried to switch to a background that was never loaded\n" + f.GetString() );
LOG->Warn( "Tried to switch to a background that was never loaded\n" + pNode->GetXML() );
SAFE_DELETE( pNode );
return;
}