From 7ad7d8ada63e366c881ff31b93d9a1b859acd4d9 Mon Sep 17 00:00:00 2001 From: Collecting Date: Mon, 22 Dec 2025 08:38:42 +0000 Subject: [PATCH] fs(feat): Add Backup Saves for Custom Save Paths Signed-off-by: Collecting --- src/core/hle/service/filesystem/filesystem.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/core/hle/service/filesystem/filesystem.cpp b/src/core/hle/service/filesystem/filesystem.cpp index 1a3637fda..edb7d6ede 100644 --- a/src/core/hle/service/filesystem/filesystem.cpp +++ b/src/core/hle/service/filesystem/filesystem.cpp @@ -431,7 +431,12 @@ std::shared_ptr FileSystemController::CreateSaveDataFa if (!custom_path_str.empty() && Common::FS::IsDir(custom_path)) { LOG_INFO(Service_FS, "Using custom save path for program_id={:016X}: {}", program_id, custom_path_str); auto custom_save_directory = vfs->OpenDirectory(custom_path_str, rw_mode); - return std::make_shared(system, program_id, std::move(custom_save_directory)); + + // Fetch the default NAND directory to act as the backup location + auto nand_directory = vfs->OpenDirectory(Common::FS::GetCitronPathString(CitronPath::NANDDir), rw_mode); + + return std::make_shared( + system, program_id, std::move(custom_save_directory), std::move(nand_directory)); } }