mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
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:
parent
02d2341b6e
commit
94e7051c82
1 changed files with 2 additions and 2 deletions
|
@ -23,12 +23,12 @@ namespace LibHac
|
|||
|
||||
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)
|
||||
{
|
||||
return new FileStream(path, mode, access);
|
||||
return new FileStream(Path.Combine(Root, path), mode, access);
|
||||
}
|
||||
|
||||
public string[] GetFileSystemEntries(string path, string searchPattern)
|
||||
|
|
Loading…
Reference in a new issue