\ -> /
(we don't need to do this all at once, for most things; GetDirListing doesn't care)
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user