|
|
|
@ -17,19 +17,19 @@
|
|
|
|
|
|
|
|
|
|
namespace FileSys {
|
|
|
|
|
|
|
|
|
|
static std::string GetSaveDataContainerPath(const std::string& mount_point) {
|
|
|
|
|
return Common::StringFromFormat("%sNintendo 3DS/%s/%s/title/", mount_point.c_str(),
|
|
|
|
|
static std::string GetSaveDataContainerPath(const std::string& sdmc_directory) {
|
|
|
|
|
return Common::StringFromFormat("%sNintendo 3DS/%s/%s/title/", sdmc_directory.c_str(),
|
|
|
|
|
SYSTEM_ID.c_str(), SDCARD_ID.c_str());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static std::string GetSaveDataPath(const std::string& mount_point, u64 program_id) {
|
|
|
|
|
static std::string GetSaveDataPath(const std::string& mount_location, u64 program_id) {
|
|
|
|
|
u32 high = program_id >> 32;
|
|
|
|
|
u32 low = program_id & 0xFFFFFFFF;
|
|
|
|
|
return Common::StringFromFormat("%s%08x/%08x/data/00000001/", mount_point.c_str(), high, low);
|
|
|
|
|
return Common::StringFromFormat("%s%08x/%08x/data/00000001/", mount_location.c_str(), high, low);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Archive_SaveData::Archive_SaveData(const std::string& mount_point)
|
|
|
|
|
: DiskArchive(GetSaveDataContainerPath(mount_point)) {
|
|
|
|
|
Archive_SaveData::Archive_SaveData(const std::string& sdmc_directory)
|
|
|
|
|
: DiskArchive(GetSaveDataContainerPath(sdmc_directory)) {
|
|
|
|
|
LOG_INFO(Service_FS, "Directory %s set as SaveData.", this->mount_point.c_str());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|