call FILEMAN->MountInitialFilesystems explicitly

This commit is contained in:
Glenn Maynard
2004-03-04 01:16:52 +00:00
parent cfead1c79e
commit bd01de6260
3 changed files with 2 additions and 3 deletions
-2
View File
@@ -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
+1 -1
View File
@@ -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;
+1
View File
@@ -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();