SMLoader::LoadEditFromBuffer, SMLoader::LoadEditFromMsd

This commit is contained in:
Glenn Maynard
2005-02-19 07:46:42 +00:00
parent d9da6cc9fc
commit 3fb7238ac0
2 changed files with 14 additions and 0 deletions
+12
View File
@@ -416,6 +416,18 @@ bool SMLoader::LoadEdit( CString sEditFilePath, ProfileSlot slot )
return false;
}
return LoadEditFromMsd( msd, sEditFilePath, slot );
}
bool SMLoader::LoadEditFromBuffer( const CString &sBuffer, CString sEditFilePath, ProfileSlot slot )
{
MsdFile msd;
msd.ReadFromString( sBuffer );
LoadEditFromMsd( msd, sEditFilePath, slot );
}
bool SMLoader::LoadEditFromMsd( const MsdFile &msd, CString sEditFilePath, ProfileSlot slot )
{
Song* pSong = NULL;
for( unsigned i=0; i<msd.GetNumValues(); i++ )