call FILEMAN->MountInitialFilesystems explicitly
This commit is contained in:
@@ -119,8 +119,6 @@ RageFileManager::RageFileManager( CString argv0 )
|
|||||||
ld.driver = g_Mountpoints;
|
ld.driver = g_Mountpoints;
|
||||||
ld.MountPoint = "";
|
ld.MountPoint = "";
|
||||||
g_Drivers.push_back( ld );
|
g_Drivers.push_back( ld );
|
||||||
|
|
||||||
MountInitialFilesystems();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef HAVE_EXTRA // set for custom initial mount rules
|
#ifndef HAVE_EXTRA // set for custom initial mount rules
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ class RageFileManager
|
|||||||
public:
|
public:
|
||||||
RageFileManager( CString argv0 );
|
RageFileManager( CString argv0 );
|
||||||
~RageFileManager();
|
~RageFileManager();
|
||||||
|
void MountInitialFilesystems();
|
||||||
|
|
||||||
void GetDirListing( const CString &sPath, CStringArray &AddTo, bool bOnlyDirs, bool bReturnPathToo );
|
void GetDirListing( const CString &sPath, CStringArray &AddTo, bool bOnlyDirs, bool bReturnPathToo );
|
||||||
bool Remove( const CString &sPath );
|
bool Remove( const CString &sPath );
|
||||||
@@ -39,7 +40,6 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
RageFileObj *OpenForWriting( const CString &sPath, int mode, RageFile &p, int &err );
|
RageFileObj *OpenForWriting( const CString &sPath, int mode, RageFile &p, int &err );
|
||||||
void MountInitialFilesystems();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
extern RageFileManager *FILEMAN;
|
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. */
|
/* Almost everything uses this to read and write files. Load this early. */
|
||||||
FILEMAN = new RageFileManager( argv[0] );
|
FILEMAN = new RageFileManager( argv[0] );
|
||||||
|
FILEMAN->MountInitialFilesystems();
|
||||||
|
|
||||||
/* Set this up next. Do this early, since it's needed for RageException::Throw. */
|
/* Set this up next. Do this early, since it's needed for RageException::Throw. */
|
||||||
LOG = new RageLog();
|
LOG = new RageLog();
|
||||||
|
|||||||
Reference in New Issue
Block a user