diff options
author | Subv <subv2112@gmail.com> | 2015-01-04 15:10:27 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2015-01-04 15:10:27 +0100 |
commit | 90dffe3fc16dd60166c53bafa2b3157737f39225 (patch) | |
tree | f2c7fa4e0405aea0107765810451d43ba8861ba5 /src/core/file_sys | |
parent | Archives: Changed the way paths are built for the archives. (diff) | |
download | yuzu-90dffe3fc16dd60166c53bafa2b3157737f39225.tar yuzu-90dffe3fc16dd60166c53bafa2b3157737f39225.tar.gz yuzu-90dffe3fc16dd60166c53bafa2b3157737f39225.tar.bz2 yuzu-90dffe3fc16dd60166c53bafa2b3157737f39225.tar.lz yuzu-90dffe3fc16dd60166c53bafa2b3157737f39225.tar.xz yuzu-90dffe3fc16dd60166c53bafa2b3157737f39225.tar.zst yuzu-90dffe3fc16dd60166c53bafa2b3157737f39225.zip |
Diffstat (limited to 'src/core/file_sys')
-rw-r--r-- | src/core/file_sys/archive_extsavedata.cpp | 5 | ||||
-rw-r--r-- | src/core/file_sys/archive_savedata.cpp | 3 | ||||
-rw-r--r-- | src/core/file_sys/archive_savedatacheck.cpp | 2 | ||||
-rw-r--r-- | src/core/file_sys/archive_systemsavedata.cpp | 2 |
4 files changed, 7 insertions, 5 deletions
diff --git a/src/core/file_sys/archive_extsavedata.cpp b/src/core/file_sys/archive_extsavedata.cpp index 5de2aae43..50ca878e2 100644 --- a/src/core/file_sys/archive_extsavedata.cpp +++ b/src/core/file_sys/archive_extsavedata.cpp @@ -27,9 +27,10 @@ static std::string GetExtSaveDataPath(const std::string& mount_point, const Path static std::string GetExtDataContainerPath(const std::string& mount_point, bool shared) { if (shared) - return Common::StringFromFormat("%sdata/%32x/extdata/", mount_point.c_str(), ID0); + return Common::StringFromFormat("%sdata/%s/extdata/", mount_point.c_str(), SYSTEM_ID.c_str()); - return Common::StringFromFormat("%sNintendo 3DS/%32x/%32x/extdata/", mount_point.c_str(), ID0, ID1); + return Common::StringFromFormat("%sNintendo 3DS/%s/%s/extdata/", mount_point.c_str(), + SYSTEM_ID.c_str(), SDCARD_ID.c_str()); } Archive_ExtSaveData::Archive_ExtSaveData(const std::string& mount_location, bool shared) diff --git a/src/core/file_sys/archive_savedata.cpp b/src/core/file_sys/archive_savedata.cpp index f189692fa..ecce7c105 100644 --- a/src/core/file_sys/archive_savedata.cpp +++ b/src/core/file_sys/archive_savedata.cpp @@ -18,7 +18,8 @@ namespace FileSys { static std::string GetSaveDataContainerPath(const std::string& mount_point) { - return Common::StringFromFormat("%sNintendo 3DS/%32x/%32x/title/", mount_point.c_str(), ID0, ID1); + return Common::StringFromFormat("%sNintendo 3DS/%s/%s/title/", mount_point.c_str(), + SYSTEM_ID.c_str(), SDCARD_ID.c_str()); } static std::string GetSaveDataPath(const std::string& mount_point, u64 program_id) { diff --git a/src/core/file_sys/archive_savedatacheck.cpp b/src/core/file_sys/archive_savedatacheck.cpp index dcd563773..6f45d13dd 100644 --- a/src/core/file_sys/archive_savedatacheck.cpp +++ b/src/core/file_sys/archive_savedatacheck.cpp @@ -13,7 +13,7 @@ namespace FileSys { static std::string GetSaveDataCheckContainerPath(const std::string& mount_point) { - return Common::StringFromFormat("%stitle/", mount_point.c_str(), ID0); + return Common::StringFromFormat("%s%s/title", mount_point.c_str(), SYSTEM_ID.c_str()); } static std::string GetSaveDataCheckPath(const std::string& mount_point, u32 high, u32 low) { diff --git a/src/core/file_sys/archive_systemsavedata.cpp b/src/core/file_sys/archive_systemsavedata.cpp index 615f50e20..c2a5d641a 100644 --- a/src/core/file_sys/archive_systemsavedata.cpp +++ b/src/core/file_sys/archive_systemsavedata.cpp @@ -24,7 +24,7 @@ static std::string GetSystemSaveDataPath(const std::string& mount_point, u64 sav } static std::string GetSystemSaveDataContainerPath(const std::string& mount_point) { - return Common::StringFromFormat("%sdata/%32x/sysdata/", mount_point.c_str(), ID0); + return Common::StringFromFormat("%sdata/%s/sysdata/", mount_point.c_str(), SYSTEM_ID.c_str()); } Archive_SystemSaveData::Archive_SystemSaveData(const std::string& mount_point, u64 save_id) |