diff options
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() { | |||
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | ResultVal<std::unique_ptr<ArchiveBackend>> ArchiveFactory_ExtSaveData::Open(const Path& path) { | 73 | ResultVal<std::unique_ptr<ArchiveBackend>> ArchiveFactory_ExtSaveData::Open(const Path& path) { |
| 74 | std::string fullpath = GetExtSaveDataPath(mount_point, path); | 74 | std::string fullpath = GetExtSaveDataPath(mount_point, path) + "user/"; |
| 75 | if (!FileUtil::Exists(fullpath)) { | 75 | if (!FileUtil::Exists(fullpath)) { |
| 76 | // TODO(Subv): Check error code, this one is probably wrong | 76 | // TODO(Subv): Check error code, this one is probably wrong |
| 77 | return ResultCode(ErrorDescription::FS_NotFormatted, ErrorModule::FS, | 77 | return ResultCode(ErrorDescription::FS_NotFormatted, ErrorModule::FS, |
| @@ -82,8 +82,11 @@ ResultVal<std::unique_ptr<ArchiveBackend>> ArchiveFactory_ExtSaveData::Open(cons | |||
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | ResultCode ArchiveFactory_ExtSaveData::Format(const Path& path) { | 84 | ResultCode ArchiveFactory_ExtSaveData::Format(const Path& path) { |
| 85 | std::string fullpath = GetExtSaveDataPath(mount_point, path); | 85 | // These folders are always created with the ExtSaveData |
| 86 | FileUtil::CreateFullPath(fullpath); | 86 | std::string user_path = GetExtSaveDataPath(mount_point, path) + "user/"; |
| 87 | std::string boss_path = GetExtSaveDataPath(mount_point, path) + "boss/"; | ||
| 88 | FileUtil::CreateFullPath(user_path); | ||
| 89 | FileUtil::CreateFullPath(boss_path); | ||
| 87 | return RESULT_SUCCESS; | 90 | return RESULT_SUCCESS; |
| 88 | } | 91 | } |
| 89 | 92 | ||