summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2014-12-18 05:44:32 +0100
committerSubv <subv2112@gmail.com>2014-12-18 05:44:32 +0100
commitbec527fa246a427e1e9628a251bd410087fd7113 (patch)
tree00fbe8e11efc859e4233ca8e28ff9902a80252bd /src/core/hle/service
parentMerge pull request #288 from Subv/savedata_stuff (diff)
downloadyuzu-bec527fa246a427e1e9628a251bd410087fd7113.tar
yuzu-bec527fa246a427e1e9628a251bd410087fd7113.tar.gz
yuzu-bec527fa246a427e1e9628a251bd410087fd7113.tar.bz2
yuzu-bec527fa246a427e1e9628a251bd410087fd7113.tar.lz
yuzu-bec527fa246a427e1e9628a251bd410087fd7113.tar.xz
yuzu-bec527fa246a427e1e9628a251bd410087fd7113.tar.zst
yuzu-bec527fa246a427e1e9628a251bd410087fd7113.zip
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/fs/archive.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/hle/service/fs/archive.cpp b/src/core/hle/service/fs/archive.cpp
index 9c3834733..d06f955d4 100644
--- a/src/core/hle/service/fs/archive.cpp
+++ b/src/core/hle/service/fs/archive.cpp
@@ -419,6 +419,15 @@ void ArchiveInit() {
CreateArchive(std::move(sdmc_archive), ArchiveIdCode::SDMC);
else
LOG_ERROR(Service_FS, "Can't instantiate SDMC archive with path %s", sdmc_directory.c_str());
+
+ std::string systemsavedata_directory = FileUtil::GetUserPath(D_SYSSAVEDATA_IDX);
+ auto systemsavedata_archive = std::make_unique<FileSys::Archive_SDMC>(systemsavedata_directory);
+ if (systemsavedata_archive->Initialize()) {
+ CreateArchive(std::move(sdmc_archive), ArchiveIdCode::SystemSaveData);
+ } else {
+ LOG_ERROR(Service_FS, "Can't instantiate SystemSaveData archive with path %s",
+ systemsavedata_directory.c_str());
+ }
}
/// Shutdown archives