From bd01de62606fef49fecb0633494c902941d35f86 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 4 Mar 2004 01:16:52 +0000 Subject: [PATCH] call FILEMAN->MountInitialFilesystems explicitly --- stepmania/src/RageFileManager.cpp | 2 -- stepmania/src/RageFileManager.h | 2 +- stepmania/src/StepMania.cpp | 1 + 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/stepmania/src/RageFileManager.cpp b/stepmania/src/RageFileManager.cpp index af0d9a4f68..8b01ee1b96 100644 --- a/stepmania/src/RageFileManager.cpp +++ b/stepmania/src/RageFileManager.cpp @@ -119,8 +119,6 @@ RageFileManager::RageFileManager( CString argv0 ) ld.driver = g_Mountpoints; ld.MountPoint = ""; g_Drivers.push_back( ld ); - - MountInitialFilesystems(); } #ifndef HAVE_EXTRA // set for custom initial mount rules diff --git a/stepmania/src/RageFileManager.h b/stepmania/src/RageFileManager.h index 5ddf0e44dc..d8bf5bfe4c 100644 --- a/stepmania/src/RageFileManager.h +++ b/stepmania/src/RageFileManager.h @@ -12,6 +12,7 @@ class RageFileManager public: RageFileManager( CString argv0 ); ~RageFileManager(); + void MountInitialFilesystems(); void GetDirListing( const CString &sPath, CStringArray &AddTo, bool bOnlyDirs, bool bReturnPathToo ); bool Remove( const CString &sPath ); @@ -39,7 +40,6 @@ public: private: RageFileObj *OpenForWriting( const CString &sPath, int mode, RageFile &p, int &err ); - void MountInitialFilesystems(); }; extern RageFileManager *FILEMAN; diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 47aa5a9605..fb81a1f411 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -839,6 +839,7 @@ int main(int argc, char* argv[]) /* Almost everything uses this to read and write files. Load this early. */ FILEMAN = new RageFileManager( argv[0] ); + FILEMAN->MountInitialFilesystems(); /* Set this up next. Do this early, since it's needed for RageException::Throw. */ LOG = new RageLog();