RageFileManager::Remount
This commit is contained in:
@@ -54,14 +54,9 @@ public:
|
||||
|
||||
|
||||
RageFileDriverDirect::RageFileDriverDirect( CString root_ ):
|
||||
RageFileDriver( new DirectFilenameDB(root_) ),
|
||||
root(root_)
|
||||
RageFileDriver( new DirectFilenameDB(root_) )
|
||||
{
|
||||
if( root.Right(1) != "/" )
|
||||
root += '/';
|
||||
|
||||
/* If the root path doesn't exist, create it. */
|
||||
CreateDirectories( root );
|
||||
Remount( root_ );
|
||||
}
|
||||
|
||||
|
||||
@@ -176,6 +171,18 @@ bool RageFileDriverDirect::Ready()
|
||||
return PathReady( root );
|
||||
}
|
||||
|
||||
bool RageFileDriverDirect::Remount( const CString &sPath )
|
||||
{
|
||||
root = sPath;
|
||||
if( root.Right(1) != "/" )
|
||||
root += '/';
|
||||
|
||||
/* If the root path doesn't exist, create it. */
|
||||
CreateDirectories( root );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static const unsigned int BUFSIZE = 1024*64;
|
||||
RageFileObjDirect::RageFileObjDirect( const CString &path_, int fd_, int mode_ )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user