From f660acb0cde521b4a689def992293f7208f7c398 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sat, 6 Aug 2022 08:48:51 -0700 Subject: [PATCH] fs/emummc: fix DirectoryRedirectionFileSystem not stripping prefix --- .../fssystem/fssystem_directory_redirection_filesystem.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstratosphere/include/stratosphere/fssystem/fssystem_directory_redirection_filesystem.hpp b/libstratosphere/include/stratosphere/fssystem/fssystem_directory_redirection_filesystem.hpp index 5252348c..24c48d0c 100644 --- a/libstratosphere/include/stratosphere/fssystem/fssystem_directory_redirection_filesystem.hpp +++ b/libstratosphere/include/stratosphere/fssystem/fssystem_directory_redirection_filesystem.hpp @@ -42,7 +42,7 @@ namespace ams::fssystem { Result ResolveFullPath(fs::Path *out, const fs::Path &path) { if (path.IsMatchHead(m_before_dir.GetString(), m_before_dir.GetLength())) { R_TRY(out->Initialize(m_after_dir)); - R_TRY(out->AppendChild(path)); + R_TRY(out->AppendChild(path.GetString() + m_before_dir.GetLength())); } else { R_TRY(out->Initialize(path)); }