(we don't need to do this all at once, for most things; GetDirListing
doesn't care)
This commit is contained in:
Glenn Maynard
2003-01-23 04:34:15 +00:00
parent 3cf9dfa910
commit 5d74003de0
+4 -3
View File
@@ -200,9 +200,10 @@ void RageSoundManager::PlayOnceFromDir( CString sDir )
if( sDir == "" )
return;
// make sure there's a backslash at the end of this path
if( sDir[sDir.GetLength()-1] != '\\' )
sDir += "\\";
// make sure there's a slash at the end of this path
sDir.Replace("\\", "/");
if( sDir[sDir.GetLength()-1] != '/' )
sDir += "/";
CStringArray arraySoundFiles;
GetDirListing( sDir + "*.mp3", arraySoundFiles );