From 5d74003de080b3c8ccca1cc783d08048f54fb524 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 23 Jan 2003 04:34:15 +0000 Subject: [PATCH] \ -> / (we don't need to do this all at once, for most things; GetDirListing doesn't care) --- stepmania/src/RageSoundManager.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/stepmania/src/RageSoundManager.cpp b/stepmania/src/RageSoundManager.cpp index bd1840a5f8..c25b47d3c1 100644 --- a/stepmania/src/RageSoundManager.cpp +++ b/stepmania/src/RageSoundManager.cpp @@ -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 );