call FILEMAN->MountInitialFilesystems explicitly
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user