Fixed a bug where the file ...

... potentially doesn't exist in the file system, if you try to open it
directly.
This commit is contained in:
caitsith2 2018-08-26 00:22:08 -07:00 committed by Alex Barney
parent 02d2341b6e
commit 94e7051c82

View file

@ -23,12 +23,12 @@ namespace LibHac
public Stream OpenFile(string path, FileMode mode) public Stream OpenFile(string path, FileMode mode)
{ {
return new FileStream(path, mode); return new FileStream(Path.Combine(Root, path), mode);
} }
public Stream OpenFile(string path, FileMode mode, FileAccess access) public Stream OpenFile(string path, FileMode mode, FileAccess access)
{ {
return new FileStream(path, mode, access); return new FileStream(Path.Combine(Root, path), mode, access);
} }
public string[] GetFileSystemEntries(string path, string searchPattern) public string[] GetFileSystemEntries(string path, string searchPattern)