Merge pull request #301 from Subv/more_savedata
SaveData: Implemented the SystemSaveData archive.
This commit is contained in:
commit
c71f8840e5
8 changed files with 82 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue