From 5f75944505880232b4a9329e85998daf2b589622 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sat, 7 Dec 2019 01:03:16 -0800 Subject: [PATCH] ams_mitm: fix directory save bugs --- .../fssystem/impl/fssystem_path_resolution_filesystem.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/stratosphere/fssystem/impl/fssystem_path_resolution_filesystem.hpp b/include/stratosphere/fssystem/impl/fssystem_path_resolution_filesystem.hpp index 93908597..4797ab77 100644 --- a/include/stratosphere/fssystem/impl/fssystem_path_resolution_filesystem.hpp +++ b/include/stratosphere/fssystem/impl/fssystem_path_resolution_filesystem.hpp @@ -92,7 +92,7 @@ namespace ams::fssystem::impl { R_TRY(static_cast(this)->ResolveFullPath(new_full_path, sizeof(new_full_path), new_path)); std::optional optional_lock = static_cast(this)->GetAccessorLock(); - return this->base_fs->RenameFile(old_path, new_path); + return this->base_fs->RenameFile(old_full_path, new_full_path); } virtual Result RenameDirectoryImpl(const char *old_path, const char *new_path) override { @@ -102,7 +102,7 @@ namespace ams::fssystem::impl { R_TRY(static_cast(this)->ResolveFullPath(new_full_path, sizeof(new_full_path), new_path)); std::optional optional_lock = static_cast(this)->GetAccessorLock(); - return this->base_fs->RenameDirectory(old_path, new_path); + return this->base_fs->RenameDirectory(old_full_path, new_full_path); } virtual Result GetEntryTypeImpl(fs::DirectoryEntryType *out, const char *path) override {