From f86cbbf53ddfbf53040bb1cfeeb60476da922ba8 Mon Sep 17 00:00:00 2001 From: Matt1360 Date: Wed, 13 Feb 2008 01:49:00 +0000 Subject: [PATCH] git-svn-id: https://openitg.svn.sourceforge.net/svnroot/openitg@5 83fadc84-e282-4d84-a09a-c4228d6ae7e5 --- src/RageFileManager.cpp | 12 ++++++++++-- src/StepMania.cpp | 1 + 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/RageFileManager.cpp b/src/RageFileManager.cpp index fd960021..1fd5f16c 100755 --- a/src/RageFileManager.cpp +++ b/src/RageFileManager.cpp @@ -277,14 +277,22 @@ void RageFileManager::MountInitialFilesystems() /* Search for a directory with "Songs" in it. Be careful: the CWD is likely to * be ~, and it's possible that some users will have a ~/Songs/ directory that * has nothing to do with us, so check the initial directory last. */ + + + RageFileManager::Mount( "dir" , "/stats/" , "/Data" ); + RageFileManager::Mount( "dir" , "/dxldata" , "/Packages" ); + CString Root = ""; struct stat st; if( Root == "" && !stat( DirOfExecutable + "/Songs", &st ) && st.st_mode&S_IFDIR ) Root = DirOfExecutable; if( Root == "" && !stat( InitialWorkingDirectory + "/Songs", &st ) && st.st_mode&S_IFDIR ) Root = InitialWorkingDirectory; - if( Root == "" ) - RageException::Throw( "Couldn't find \"Songs\"" ); +// if( Root == "" ) +// RageException::Throw( "Couldn't find \"Songs\"" ); + // Disabled above, for it crashes if there is no primary Songs directory + // I'm loading off zips and additional folders...I don't want no crashes... + // -- Matt1360 RageFileManager::Mount( "dir", Root, "/" ); #elif defined(_WINDOWS) diff --git a/src/StepMania.cpp b/src/StepMania.cpp index 4d6eda95..9ce7e3e6 100755 --- a/src/StepMania.cpp +++ b/src/StepMania.cpp @@ -850,6 +850,7 @@ static void MountTreeOfZips( const CString &dir ) vector zips; GetDirListing( path + "/*.zip", zips, false, true ); GetDirListing( path + "/*.smzip", zips, false, true ); + GetDirListing( path + "/*.dxl" , zips, false, true ); for( unsigned i = 0; i < zips.size(); ++i ) { -- 2.11.0