mirror of
https://github.com/kwsch/pkNX.git
synced 2026-09-30 13:16:58 -05:00
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:
@@ -88,11 +88,11 @@ public Stream CreateFile(FileSystemPath path)
|
||||
return File.Create(GetPhysicalPath(path));
|
||||
}
|
||||
|
||||
public Stream OpenFile(FileSystemPath path, FileAccess access)
|
||||
public Stream OpenFile(FileSystemPath path, FileMode mode = FileMode.Open, FileAccess access = FileAccess.Read)
|
||||
{
|
||||
if (!path.IsFile)
|
||||
throw new ArgumentException("The specified path is not a file.", nameof(path));
|
||||
return File.Open(GetPhysicalPath(path), FileMode.Open, access);
|
||||
return File.Open(GetPhysicalPath(path), mode, access);
|
||||
}
|
||||
|
||||
public void CreateDirectory(FileSystemPath path)
|
||||
|
||||
Reference in New Issue
Block a user