diff options
author | Subv <subv2112@gmail.com> | 2015-01-03 20:46:05 -0500 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2015-01-03 20:46:05 -0500 |
commit | 71a063f45cba961ee07730f4ab79f2bcc3ff9b5b (patch) | |
tree | 3c134bc71fd404b33a6d6fcaed743457d7fb7e66 /src/core/file_sys/archive_systemsavedata.cpp | |
parent | cfd7b219f6ad9116057fbe64bbb5dfd0afbbe29c (diff) |
Archives: Changed the way paths are built for the archives.
Each archive now takes a mount point of either NAND or SDMC, and builds its own directory structure there, trying to simulate an HLE-friendly hardware layout
Diffstat (limited to 'src/core/file_sys/archive_systemsavedata.cpp')
-rw-r--r-- | src/core/file_sys/archive_systemsavedata.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/file_sys/archive_systemsavedata.cpp b/src/core/file_sys/archive_systemsavedata.cpp index 0da32d51..615f50e2 100644 --- a/src/core/file_sys/archive_systemsavedata.cpp +++ b/src/core/file_sys/archive_systemsavedata.cpp @@ -9,6 +9,7 @@ #include "core/file_sys/archive_systemsavedata.h" #include "core/file_sys/disk_archive.h" +#include "core/hle/service/fs/archive.h" #include "core/settings.h" //////////////////////////////////////////////////////////////////////////////////////////////////// @@ -22,8 +23,12 @@ static std::string GetSystemSaveDataPath(const std::string& mount_point, u64 sav return Common::StringFromFormat("%s%08X/%08X/", mount_point.c_str(), save_low, save_high); } +static std::string GetSystemSaveDataContainerPath(const std::string& mount_point) { + return Common::StringFromFormat("%sdata/%32x/sysdata/", mount_point.c_str(), ID0); +} + Archive_SystemSaveData::Archive_SystemSaveData(const std::string& mount_point, u64 save_id) - : DiskArchive(GetSystemSaveDataPath(mount_point, save_id)) { + : DiskArchive(GetSystemSaveDataPath(GetSystemSaveDataContainerPath(mount_point), save_id)) { LOG_INFO(Service_FS, "Directory %s set as SystemSaveData.", this->mount_point.c_str()); } |