From 62ab69e47b674627290effc8b63dc3d77c0ad965 Mon Sep 17 00:00:00 2001 From: Ryan Dortmans Date: Thu, 21 Oct 2004 05:43:43 +0000 Subject: [PATCH] Xbox: Additional song folders fix --- stepmania/src/RageFileDriverDirectHelpers.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/stepmania/src/RageFileDriverDirectHelpers.cpp b/stepmania/src/RageFileDriverDirectHelpers.cpp index 1271fb258b..32363ea8e0 100644 --- a/stepmania/src/RageFileDriverDirectHelpers.cpp +++ b/stepmania/src/RageFileDriverDirectHelpers.cpp @@ -238,6 +238,13 @@ void DirectFilenameDB::PopulateFileSet( FileSet &fs, const CString &path ) { CString sPath = path; +#if defined(XBOX) + /* Xbox doesn't handle path names which end with ".", which are used when using an + * alternative song directory */ + if(sPath.size() > 0 && sPath.Right(1) == ".") + sPath.erase(sPath.size() - 1); +#endif + /* Resolve path cases (path/Path -> PATH/path). */ ResolvePath( sPath );