Made VFS fully functional

Still need to start using it, but want to do it a bit slow to test it out. Also should really build some unit tests for this one..
This commit is contained in:
duckdoom4
2023-09-08 22:53:30 +02:00
parent 39308b2509
commit e74bfbc365
11 changed files with 310 additions and 157 deletions

View File

@@ -58,9 +58,9 @@ public bool Exists(FileSystemPath path)
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public Stream OpenFile(FileSystemPath path, FileAccess access)
public Stream OpenFile(FileSystemPath path, FileMode mode = FileMode.Open, FileAccess access = FileAccess.Read)
{
return FileSystem.OpenFile(ToAbsolutePath(path), access);
return FileSystem.OpenFile(ToAbsolutePath(path), mode, access);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]