fs/emummc: fix DirectoryRedirectionFileSystem not stripping prefix

This commit is contained in:
Michael Scire 2022-08-06 08:48:51 -07:00
parent 7e6b369605
commit d954e85826
2 changed files with 38 additions and 1 deletions

View file

@ -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));
}