[fs] Preserve guest file open modes in real VFS

This commit is contained in:
xbzk
2026-07-29 17:04:00 -03:00
parent 801c472017
commit a1caf852ff
8 changed files with 51 additions and 49 deletions
@@ -258,7 +258,7 @@ Result VfsDirectoryServiceWrapper::OpenFile(FileSys::VirtualFile* out_file,
npath.remove_prefix(1);
}
auto file = backing->GetFileRelative(npath);
auto file = backing->GetFileRelative(npath, mode);
if (file == nullptr) {
return FileSys::ResultPathNotFound;
}