\ -> /
(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 == "" )
|
if( sDir == "" )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// make sure there's a backslash at the end of this path
|
// make sure there's a slash at the end of this path
|
||||||
if( sDir[sDir.GetLength()-1] != '\\' )
|
sDir.Replace("\\", "/");
|
||||||
sDir += "\\";
|
if( sDir[sDir.GetLength()-1] != '/' )
|
||||||
|
sDir += "/";
|
||||||
|
|
||||||
CStringArray arraySoundFiles;
|
CStringArray arraySoundFiles;
|
||||||
GetDirListing( sDir + "*.mp3", arraySoundFiles );
|
GetDirListing( sDir + "*.mp3", arraySoundFiles );
|
||||||
|
|||||||
Reference in New Issue
Block a user