From 94e7051c827bc8132c42704fd3f27fd9ef85c527 Mon Sep 17 00:00:00 2001 From: caitsith2 Date: Sun, 26 Aug 2018 00:22:08 -0700 Subject: [PATCH] Fixed a bug where the file ... ... potentially doesn't exist in the file system, if you try to open it directly. --- LibHac/FileSystem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LibHac/FileSystem.cs b/LibHac/FileSystem.cs index adcbc48d..4eb3e237 100644 --- a/LibHac/FileSystem.cs +++ b/LibHac/FileSystem.cs @@ -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)