From cfd7b219f6ad9116057fbe64bbb5dfd0afbbe29c Mon Sep 17 00:00:00 2001 From: Subv Date: Sat, 3 Jan 2015 19:01:46 -0500 Subject: [PATCH] SaveDataCheck: Move the files to nand/title under /nand/title/high/low/content/00000000.app.romfs --- src/common/common_paths.h | 2 +- src/core/file_sys/archive_savedatacheck.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/common_paths.h b/src/common/common_paths.h index f019944f51..e307ca9f37 100644 --- a/src/common/common_paths.h +++ b/src/common/common_paths.h @@ -43,7 +43,7 @@ #define EXTSAVEDATA_DIR "sdmc/Nintendo 3DS/extdata" #define SHAREDEXTSAVEDATA_DIR "nand/data/extdata" #define SAVEDATA_DIR "savedata" -#define SAVEDATACHECK_DIR "savedatacheck" +#define SAVEDATACHECK_DIR "nand/title" #define SYSDATA_DIR "sysdata" #define SYSSAVEDATA_DIR "nand/data/sysdata" #define SHADERCACHE_DIR "shader_cache" diff --git a/src/core/file_sys/archive_savedatacheck.cpp b/src/core/file_sys/archive_savedatacheck.cpp index 233158a0ca..1b1e01c6ec 100644 --- a/src/core/file_sys/archive_savedatacheck.cpp +++ b/src/core/file_sys/archive_savedatacheck.cpp @@ -23,7 +23,8 @@ ResultCode Archive_SaveDataCheck::Open(const Path& path) { // this archive again with a different path, will corrupt the previously open file. auto vec = path.AsBinary(); const u32* data = reinterpret_cast(vec.data()); - std::string file_path = Common::StringFromFormat("%s%08x%08x.bin", mount_point.c_str(), data[1], data[0]); + std::string file_path = Common::StringFromFormat("%s%08x/%08x/content/00000000.app.romfs", + mount_point.c_str(), data[1], data[0]); FileUtil::IOFile file(file_path, "rb"); std::fill(raw_data.begin(), raw_data.end(), 0);