diff options
| author | 2014-12-31 21:43:31 -0500 | |
|---|---|---|
| committer | 2015-01-02 21:55:13 -0500 | |
| commit | 3bc9f5509b9f36e934d1a16eeda31be9bb22ac10 (patch) | |
| tree | b76cac429cdde11056ecb96f0a55abf92ce8edbb /src/core/file_sys | |
| parent | Merge pull request #381 from Subv/savedatacheck (diff) | |
| download | yuzu-3bc9f5509b9f36e934d1a16eeda31be9bb22ac10.tar.gz yuzu-3bc9f5509b9f36e934d1a16eeda31be9bb22ac10.tar.xz yuzu-3bc9f5509b9f36e934d1a16eeda31be9bb22ac10.zip | |
Archives: Change the folder layout of some archives.
This is to better represent the hardware layout, they are still aren't quite accurate, but this better and will help a bit when implementing the other archives like NAND-RO and NAND-RW
Diffstat (limited to 'src/core/file_sys')
| -rw-r--r-- | src/core/file_sys/archive_extsavedata.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/file_sys/archive_extsavedata.cpp b/src/core/file_sys/archive_extsavedata.cpp index 4759ef3ae..2f00bf067 100644 --- a/src/core/file_sys/archive_extsavedata.cpp +++ b/src/core/file_sys/archive_extsavedata.cpp | |||
| @@ -19,10 +19,9 @@ namespace FileSys { | |||
| 19 | static std::string GetExtSaveDataPath(const std::string& mount_point, const Path& path) { | 19 | static std::string GetExtSaveDataPath(const std::string& mount_point, const Path& path) { |
| 20 | std::vector<u8> vec_data = path.AsBinary(); | 20 | std::vector<u8> vec_data = path.AsBinary(); |
| 21 | const u32* data = reinterpret_cast<const u32*>(vec_data.data()); | 21 | const u32* data = reinterpret_cast<const u32*>(vec_data.data()); |
| 22 | u32 media_type = data[0]; | ||
| 23 | u32 save_low = data[1]; | 22 | u32 save_low = data[1]; |
| 24 | u32 save_high = data[2]; | 23 | u32 save_high = data[2]; |
| 25 | return Common::StringFromFormat("%s%s/%08X/%08X/", mount_point.c_str(), media_type == 0 ? "nand" : "sdmc", save_high, save_low); | 24 | return Common::StringFromFormat("%s%08X/%08X/", mount_point.c_str(), save_high, save_low); |
| 26 | } | 25 | } |
| 27 | 26 | ||
| 28 | Archive_ExtSaveData::Archive_ExtSaveData(const std::string& mount_point) | 27 | Archive_ExtSaveData::Archive_ExtSaveData(const std::string& mount_point) |