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 );