diff options
author | Subv <subv2112@gmail.com> | 2015-01-01 18:39:27 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2015-01-03 03:13:54 +0100 |
commit | aade417b143a756da10b69747793c707ef8316fd (patch) | |
tree | d5fd49926dbfb4e7c289a8fa060df9c1e4401fde /src/core/hle/service | |
parent | SaveDataCheck: Preliminary work in this archive. (diff) | |
download | yuzu-aade417b143a756da10b69747793c707ef8316fd.tar yuzu-aade417b143a756da10b69747793c707ef8316fd.tar.gz yuzu-aade417b143a756da10b69747793c707ef8316fd.tar.bz2 yuzu-aade417b143a756da10b69747793c707ef8316fd.tar.lz yuzu-aade417b143a756da10b69747793c707ef8316fd.tar.xz yuzu-aade417b143a756da10b69747793c707ef8316fd.tar.zst yuzu-aade417b143a756da10b69747793c707ef8316fd.zip |
Diffstat (limited to 'src/core/hle/service')
-rw-r--r-- | src/core/hle/service/fs/archive.cpp | 7 | ||||
-rw-r--r-- | src/core/hle/service/fs/archive.h | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/core/hle/service/fs/archive.cpp b/src/core/hle/service/fs/archive.cpp index a8383d4e5..f761c6ab9 100644 --- a/src/core/hle/service/fs/archive.cpp +++ b/src/core/hle/service/fs/archive.cpp @@ -14,6 +14,7 @@ #include "core/file_sys/archive_extsavedata.h" #include "core/file_sys/archive_romfs.h" #include "core/file_sys/archive_savedata.h" +#include "core/file_sys/archive_savedatacheck.h" #include "core/file_sys/archive_sdmc.h" #include "core/file_sys/directory_backend.h" #include "core/hle/service/fs/archive.h" @@ -353,7 +354,7 @@ ResultCode DeleteDirectoryFromArchive(ArchiveHandle archive_handle, const FileSy ErrorSummary::Canceled, ErrorLevel::Status); } -ResultCode CreateFileInArchive(Handle archive_handle, const FileSys::Path& path, u32 file_size) { +ResultCode CreateFileInArchive(ArchiveHandle archive_handle, const FileSys::Path& path, u32 file_size) { Archive* archive = GetArchive(archive_handle); if (archive == nullptr) return InvalidHandle(ErrorModule::FS); @@ -463,8 +464,8 @@ void ArchiveInit() { sharedextsavedata_directory.c_str()); // Create the SaveDataCheck archive, basically a small variation of the RomFS archive - std::string savedatacheck_directory = FileUtil::GetUserPath(D_SAVEDATA_IDX) + "../savedatacheck/"; - auto savedatacheck_archive = Common::make_unique<FileSys::Archive_RomFS>(savedatacheck_directory); + std::string savedatacheck_directory = FileUtil::GetUserPath(D_SAVEDATACHECK_IDX); + auto savedatacheck_archive = Common::make_unique<FileSys::Archive_SaveDataCheck>(savedatacheck_directory); CreateArchive(std::move(savedatacheck_archive), ArchiveIdCode::SaveDataCheck); } diff --git a/src/core/hle/service/fs/archive.h b/src/core/hle/service/fs/archive.h index f2e4e4a53..9e9efa019 100644 --- a/src/core/hle/service/fs/archive.h +++ b/src/core/hle/service/fs/archive.h @@ -91,7 +91,7 @@ ResultCode DeleteDirectoryFromArchive(ArchiveHandle archive_handle, const FileSy * @param file_size The size of the new file, filled with zeroes * @return File creation result code */ -ResultCode CreateFileInArchive(Handle archive_handle, const FileSys::Path& path, u32 file_size); +ResultCode CreateFileInArchive(ArchiveHandle archive_handle, const FileSys::Path& path, u32 file_size); /** * Create a Directory from an Archive |