runs on Xbox

This commit is contained in:
Chris Danford
2003-07-22 07:47:27 +00:00
parent 20b4af87b1
commit 278cb4c3f1
53 changed files with 631 additions and 318 deletions
+4 -6
View File
@@ -52,20 +52,18 @@ bool RandomSample::LoadSoundDir( CString sDir, int iMaxToLoad )
if( sDir == "" )
return true;
sDir.Replace("\\", "/");
#if 0
/* (don't want to do this just yet) */
/* If this is actually a directory, add a backslash to the filename,
* so we'll look for eg. themes\Default\sounds\sDir\*.mp3. Otherwise,
* don't, so we'll look for all of the files starting with sDir,
* eg. themes\Default\sounds\sDir*.mp3. */
if(IsADirectory(sDir) && sDir[sDir.GetLength()-1] != '/' )
sDir += "/";
if(IsADirectory(sDir) && sDir[sDir.GetLength()-1] != SLASH )
sDir += SLASH;
#else
// make sure there's a slash at the end of this path
if( sDir[sDir.GetLength()-1] != '/' )
sDir += "/";
if( sDir.Right(1) != SLASH )
sDir += SLASH;
#endif
CStringArray arraySoundFiles;