diff options
author | bunnei <bunneidev@gmail.com> | 2014-12-18 23:29:34 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-12-18 23:29:34 +0100 |
commit | c71f8840e56fced2c8f1e2ca00c00d177131944d (patch) | |
tree | ae760245b1e66aed904e8ca16e23a594be3a638b /src/core/hle | |
parent | Merge pull request #299 from lioncash/join (diff) | |
parent | SystemSaveData: Added a TODO to move it to the NAND. (diff) | |
download | yuzu-c71f8840e56fced2c8f1e2ca00c00d177131944d.tar yuzu-c71f8840e56fced2c8f1e2ca00c00d177131944d.tar.gz yuzu-c71f8840e56fced2c8f1e2ca00c00d177131944d.tar.bz2 yuzu-c71f8840e56fced2c8f1e2ca00c00d177131944d.tar.lz yuzu-c71f8840e56fced2c8f1e2ca00c00d177131944d.tar.xz yuzu-c71f8840e56fced2c8f1e2ca00c00d177131944d.tar.zst yuzu-c71f8840e56fced2c8f1e2ca00c00d177131944d.zip |
Diffstat (limited to 'src/core/hle')
-rw-r--r-- | src/core/hle/service/fs/archive.cpp | 9 |
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 |