use GetExtension, Dirname, Basename

This commit is contained in:
Glenn Maynard
2003-10-29 20:46:37 +00:00
parent c18079e3e6
commit e2c2ae4941
4 changed files with 7 additions and 30 deletions
+1 -2
View File
@@ -145,8 +145,7 @@ BGAnimation *Background::CreateSongBGA(const Song *pSong, CString sBGName) const
if( !asFiles.empty() )
{
pTempBGA = new BGAnimation;
CString sThrowAway, sExt;
splitrelpath( asFiles[0], sThrowAway, sThrowAway, sExt );
const CString sExt = GetExtension( asFiles[0]) ;
if( sExt.CompareNoCase("avi")==0 ||
sExt.CompareNoCase("mpg")==0 ||
sExt.CompareNoCase("mpeg")==0 )