don't throw away Song scores for Songs/Steps that aren't currently loaded on the machine

This commit is contained in:
Chris Danford
2004-04-18 18:42:42 +00:00
parent 0a40998859
commit 3bc5943a9e
17 changed files with 344 additions and 232 deletions
+23
View File
@@ -368,3 +368,26 @@ Song *SongID::ToSong() const
{
return SONGMAN->GetSongFromDir( sDir );
}
XNode* SongID::CreateNode() const
{
XNode* pNode = new XNode;
pNode->name = "Song";
pNode->AppendAttr( "Dir", sDir );
return pNode;
}
void SongID::LoadFromNode( const XNode* pNode )
{
ASSERT( pNode->name == "Song" );
pNode->GetAttrValue("Dir", sDir);
}
bool SongID::IsValid() const
{
return !sDir.empty();
}