fs root paths always end with a slash
This commit is contained in:
@@ -141,6 +141,9 @@ FileDriverEntry::~FileDriverEntry()
|
|||||||
|
|
||||||
RageFileDriver *MakeFileDriver( CString Type, CString Root )
|
RageFileDriver *MakeFileDriver( CString Type, CString Root )
|
||||||
{
|
{
|
||||||
|
if( Root.Right(1) != "/" )
|
||||||
|
Root += '/';
|
||||||
|
|
||||||
for( const FileDriverEntry *p = g_FileDriverList; p; p = p->m_Link )
|
for( const FileDriverEntry *p = g_FileDriverList; p; p = p->m_Link )
|
||||||
if( !p->m_Type.CompareNoCase(Type) )
|
if( !p->m_Type.CompareNoCase(Type) )
|
||||||
return p->Create( Root );
|
return p->Create( Root );
|
||||||
|
|||||||
Reference in New Issue
Block a user