summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/archive_extsavedata.cpp
diff options
context:
space:
mode:
authorarchshift <gh@archshift.com>2015-06-03 23:53:02 +0200
committerarchshift <gh@archshift.com>2015-06-03 23:53:02 +0200
commit7589a5ad4ddb6d9adc981424877c32efcbf788ec (patch)
tree807a5f8ff93f2c52e7acf60287f87e211603daf6 /src/core/file_sys/archive_extsavedata.cpp
parentMerge pull request #844 from chinhodado/xcpretty (diff)
parentExtSavedata: Save the icon passed to CreateExtSaveData to the correct folder. (diff)
downloadyuzu-7589a5ad4ddb6d9adc981424877c32efcbf788ec.tar
yuzu-7589a5ad4ddb6d9adc981424877c32efcbf788ec.tar.gz
yuzu-7589a5ad4ddb6d9adc981424877c32efcbf788ec.tar.bz2
yuzu-7589a5ad4ddb6d9adc981424877c32efcbf788ec.tar.lz
yuzu-7589a5ad4ddb6d9adc981424877c32efcbf788ec.tar.xz
yuzu-7589a5ad4ddb6d9adc981424877c32efcbf788ec.tar.zst
yuzu-7589a5ad4ddb6d9adc981424877c32efcbf788ec.zip
Diffstat (limited to 'src/core/file_sys/archive_extsavedata.cpp')
-rw-r--r--src/core/file_sys/archive_extsavedata.cpp9
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;
}