2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

SaveDataCheck: Move the files to nand/title

under /nand/title/high/low/content/00000000.app.romfs
This commit is contained in:
Subv 2015-01-03 19:01:46 -05:00
parent 3bc9f5509b
commit cfd7b219f6
2 changed files with 3 additions and 2 deletions

View file

@ -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"

View file

@ -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<u32*>(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);