diff options
author | Subv <subv2112@gmail.com> | 2015-06-02 04:26:40 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2015-06-02 04:48:19 +0200 |
commit | 66c1db72887b6bd94c14cb63256a1aff8f4d76a3 (patch) | |
tree | e8e3a6fac7967d58e61e83c4fde18600248b965d /src/core/file_sys | |
parent | Merge pull request #838 from lioncash/thumb (diff) | |
download | yuzu-66c1db72887b6bd94c14cb63256a1aff8f4d76a3.tar yuzu-66c1db72887b6bd94c14cb63256a1aff8f4d76a3.tar.gz yuzu-66c1db72887b6bd94c14cb63256a1aff8f4d76a3.tar.bz2 yuzu-66c1db72887b6bd94c14cb63256a1aff8f4d76a3.tar.lz yuzu-66c1db72887b6bd94c14cb63256a1aff8f4d76a3.tar.xz yuzu-66c1db72887b6bd94c14cb63256a1aff8f4d76a3.tar.zst yuzu-66c1db72887b6bd94c14cb63256a1aff8f4d76a3.zip |
Diffstat (limited to 'src/core/file_sys')
-rw-r--r-- | src/core/file_sys/archive_extsavedata.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/core/file_sys/archive_extsavedata.cpp b/src/core/file_sys/archive_extsavedata.cpp index 975aafb35..e50c58a52 100644 --- a/src/core/file_sys/archive_extsavedata.cpp +++ b/src/core/file_sys/archive_extsavedata.cpp @@ -71,7 +71,7 @@ bool ArchiveFactory_ExtSaveData::Initialize() { } ResultVal<std::unique_ptr<ArchiveBackend>> ArchiveFactory_ExtSaveData::Open(const Path& path) { - std::string fullpath = GetExtSaveDataPath(mount_point, path); + std::string fullpath = GetExtSaveDataPath(mount_point, path) + "user/"; if (!FileUtil::Exists(fullpath)) { // TODO(Subv): Check error code, this one is probably wrong return ResultCode(ErrorDescription::FS_NotFormatted, ErrorModule::FS, @@ -82,8 +82,11 @@ ResultVal<std::unique_ptr<ArchiveBackend>> ArchiveFactory_ExtSaveData::Open(cons } ResultCode ArchiveFactory_ExtSaveData::Format(const Path& path) { - std::string fullpath = GetExtSaveDataPath(mount_point, path); - FileUtil::CreateFullPath(fullpath); + // These folders are always created with the ExtSaveData + std::string user_path = GetExtSaveDataPath(mount_point, path) + "user/"; + std::string boss_path = GetExtSaveDataPath(mount_point, path) + "boss/"; + FileUtil::CreateFullPath(user_path); + FileUtil::CreateFullPath(boss_path); return RESULT_SUCCESS; } |