summaryrefslogtreecommitdiff
path: root/src/core/hle
diff options
context:
space:
mode:
authorGravatar bunnei2014-12-18 17:29:34 -0500
committerGravatar bunnei2014-12-18 17:29:34 -0500
commitc71f8840e56fced2c8f1e2ca00c00d177131944d (patch)
treeae760245b1e66aed904e8ca16e23a594be3a638b /src/core/hle
parentMerge pull request #299 from lioncash/join (diff)
parentSystemSaveData: Added a TODO to move it to the NAND. (diff)
downloadyuzu-c71f8840e56fced2c8f1e2ca00c00d177131944d.tar.gz
yuzu-c71f8840e56fced2c8f1e2ca00c00d177131944d.tar.xz
yuzu-c71f8840e56fced2c8f1e2ca00c00d177131944d.zip
Merge pull request #301 from Subv/more_savedata
SaveData: Implemented the SystemSaveData archive.
Diffstat (limited to 'src/core/hle')
-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() {
419 CreateArchive(std::move(sdmc_archive), ArchiveIdCode::SDMC); 419 CreateArchive(std::move(sdmc_archive), ArchiveIdCode::SDMC);
420 else 420 else
421 LOG_ERROR(Service_FS, "Can't instantiate SDMC archive with path %s", sdmc_directory.c_str()); 421 LOG_ERROR(Service_FS, "Can't instantiate SDMC archive with path %s", sdmc_directory.c_str());
422
423 std::string systemsavedata_directory = FileUtil::GetUserPath(D_SYSSAVEDATA_IDX);
424 auto systemsavedata_archive = std::make_unique<FileSys::Archive_SDMC>(systemsavedata_directory);
425 if (systemsavedata_archive->Initialize()) {
426 CreateArchive(std::move(sdmc_archive), ArchiveIdCode::SystemSaveData);
427 } else {
428 LOG_ERROR(Service_FS, "Can't instantiate SystemSaveData archive with path %s",
429 systemsavedata_directory.c_str());
430 }
422} 431}
423 432
424/// Shutdown archives 433/// Shutdown archives