mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-27 23:04:15 +01:00
SaveDataCheck: Move the files to nand/title
under /nand/title/high/low/content/00000000.app.romfs
This commit is contained in:
parent
3bc9f5509b
commit
cfd7b219f6
@ -43,7 +43,7 @@
|
|||||||
#define EXTSAVEDATA_DIR "sdmc/Nintendo 3DS/extdata"
|
#define EXTSAVEDATA_DIR "sdmc/Nintendo 3DS/extdata"
|
||||||
#define SHAREDEXTSAVEDATA_DIR "nand/data/extdata"
|
#define SHAREDEXTSAVEDATA_DIR "nand/data/extdata"
|
||||||
#define SAVEDATA_DIR "savedata"
|
#define SAVEDATA_DIR "savedata"
|
||||||
#define SAVEDATACHECK_DIR "savedatacheck"
|
#define SAVEDATACHECK_DIR "nand/title"
|
||||||
#define SYSDATA_DIR "sysdata"
|
#define SYSDATA_DIR "sysdata"
|
||||||
#define SYSSAVEDATA_DIR "nand/data/sysdata"
|
#define SYSSAVEDATA_DIR "nand/data/sysdata"
|
||||||
#define SHADERCACHE_DIR "shader_cache"
|
#define SHADERCACHE_DIR "shader_cache"
|
||||||
|
@ -23,7 +23,8 @@ ResultCode Archive_SaveDataCheck::Open(const Path& path) {
|
|||||||
// this archive again with a different path, will corrupt the previously open file.
|
// this archive again with a different path, will corrupt the previously open file.
|
||||||
auto vec = path.AsBinary();
|
auto vec = path.AsBinary();
|
||||||
const u32* data = reinterpret_cast<u32*>(vec.data());
|
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");
|
FileUtil::IOFile file(file_path, "rb");
|
||||||
|
|
||||||
std::fill(raw_data.begin(), raw_data.end(), 0);
|
std::fill(raw_data.begin(), raw_data.end(), 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user