working on mulitplayer

This commit is contained in:
Chris Danford
2002-12-02 05:25:44 +00:00
parent d377737f9f
commit ca7c1ab78f
22 changed files with 983 additions and 227 deletions
+5 -2
View File
@@ -643,10 +643,13 @@ bool SongManager::ChooseRandomSong()
return false;
}
Song* SongManager::GetSongFromPath( const CString &sSongPath )
Song* SongManager::GetSongFromDir( CString sDir )
{
if( sDir[sDir.GetLength()-1] != '\\' )
sDir += '\\';
for( unsigned int i=0; i<m_pSongs.size(); i++ )
if( sSongPath.CompareNoCase(m_pSongs[i]->GetSongFilePath()) == 0 )
if( sDir.CompareNoCase(m_pSongs[i]->GetSongDir()) == 0 )
return m_pSongs[i];
return NULL;