clean up file drivers: drivers now always receive paths with trailing slashes;
this makes handling the relative "root" directory not a special case (".").
mountpoints now always begin with a slash. before, "/foo" and "foo" were
in two separate namespaces, which was weird and confusing; the two now
mean the same thing. there are no more special "default mountpoints"; just
mount to "/". "@path" mounts are now "/@path", and they do show up in
GetDirListing("/") (but, as before, opening "/@foo/bar" will never create
a "@foo/bar" path in a non-"@foo" mountpoint)
This commit is contained in:
@@ -147,7 +147,7 @@ void RageFileDriverZip::ParseZipfile()
|
||||
|
||||
FileInfo *pInfo = new FileInfo( info );
|
||||
m_pFiles.push_back( pInfo );
|
||||
FDB->AddFile( pInfo->m_sName, pInfo->m_iUncompressedSize, pInfo->m_iCRC32, pInfo );
|
||||
FDB->AddFile( "/" + pInfo->m_sName, pInfo->m_iUncompressedSize, pInfo->m_iCRC32, pInfo );
|
||||
}
|
||||
|
||||
if( m_pFiles.size() == 0 )
|
||||
|
||||
Reference in New Issue
Block a user