new patch for ISOFilsSystem

This commit is contained in:
tpunix 2013-07-08 12:35:07 +08:00
parent 0019666939
commit 2de2c53918
7 changed files with 23 additions and 23 deletions

View file

@ -252,13 +252,13 @@ void MetaFileSystem::Shutdown()
startingDirectory = "";
}
u32 MetaFileSystem::OpenFile(std::string filename, FileAccess access)
u32 MetaFileSystem::OpenFile(std::string filename, FileAccess access, const char *devicename)
{
std::string of;
IFileSystem *system;
if (MapFilePath(filename, of, &system))
MountPoint *mount;
if (MapFilePath(filename, of, &mount))
{
return system->OpenFile(of, access);
return mount->system->OpenFile(of, access, mount->prefix.c_str());
}
else
{