SaveData: Implemented the SystemSaveData archive.
It will be stored in the /syssavedata folder. This archive is user by various Services and possibly games via the FS:U service.
This commit is contained in:
parent
94a103a000
commit
bec527fa24
8 changed files with 80 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