diff options
| author | Subv <subv2112@gmail.com> | 2015-12-28 13:51:44 -0500 |
|---|---|---|
| committer | Subv <subv2112@gmail.com> | 2016-03-20 14:30:01 -0500 |
| commit | d26c6b3212ed36970410814593ee5ec082b1d95a (patch) | |
| tree | 3b03822761cbec083ea57719b0c8a9df530c4899 /src/core/file_sys/archive_sdmc.cpp | |
| parent | 9b2d64345141fe9ed948fe3ce7ab2c603fdf5d9e (diff) | |
HLE/FS: Implemented GetFormatInfo
Format information is currently only implemented for the ExtSaveData, SharedExtSaveData and SaveData archives, the information is stored in a file alongside the root folder of the archive.
Diffstat (limited to 'src/core/file_sys/archive_sdmc.cpp')
| -rw-r--r-- | src/core/file_sys/archive_sdmc.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/file_sys/archive_sdmc.cpp b/src/core/file_sys/archive_sdmc.cpp index 5c825f429..657221cbf 100644 --- a/src/core/file_sys/archive_sdmc.cpp +++ b/src/core/file_sys/archive_sdmc.cpp @@ -40,9 +40,14 @@ ResultVal<std::unique_ptr<ArchiveBackend>> ArchiveFactory_SDMC::Open(const Path& return MakeResult<std::unique_ptr<ArchiveBackend>>(std::move(archive)); } -ResultCode ArchiveFactory_SDMC::Format(const Path& path) { +ResultCode ArchiveFactory_SDMC::Format(const Path& path, const FileSys::ArchiveFormatInfo& format_info) { // This is kind of an undesirable operation, so let's just ignore it. :) return RESULT_SUCCESS; } +ResultVal<ArchiveFormatInfo> ArchiveFactory_SDMC::GetFormatInfo(const Path& path) const { + // TODO(Subv): Implement + LOG_ERROR(Service_FS, "Unimplemented GetFormatInfo archive %s", GetName().c_str()); + return ResultCode(-1); +} } // namespace FileSys |
