move XML loading and saving into XmlFileUtil
This commit is contained in:
@@ -774,7 +774,7 @@ void BackgroundImpl::Layer::UpdateCurBGChange( const Song *pSong, float fLastMus
|
|||||||
if( iter == m_BGAnimations.end() )
|
if( iter == m_BGAnimations.end() )
|
||||||
{
|
{
|
||||||
XNode *pNode = change.m_def.CreateNode();
|
XNode *pNode = change.m_def.CreateNode();
|
||||||
LOG->Warn( "Tried to switch to a background that was never loaded\n" + pNode->GetXML() );
|
LOG->Warn( "Tried to switch to a background that was never loaded\n" + XmlFileUtil::GetXML(pNode) );
|
||||||
SAFE_DELETE( pNode );
|
SAFE_DELETE( pNode );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ void Bookkeeper::WriteToDisk()
|
|||||||
}
|
}
|
||||||
|
|
||||||
XNode *xml = CreateNode();
|
XNode *xml = CreateNode();
|
||||||
xml->SaveToFile( f );
|
XmlFileUtil::SaveToFile( xml, f );
|
||||||
delete xml;
|
delete xml;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user