diff options
author | wwylele <wwylele@gmail.com> | 2016-11-28 22:47:41 +0100 |
---|---|---|
committer | wwylele <wwylele@gmail.com> | 2016-11-29 22:50:00 +0100 |
commit | 5af117e00cf35131cbc02af9f244340d1ddc7568 (patch) | |
tree | e9ecc8cfb0ad931b336191455ba6d30b1bbfbe51 /src/core/file_sys/archive_source_sd_savedata.h | |
parent | Merge pull request #2196 from Subv/system_mode (diff) | |
download | yuzu-5af117e00cf35131cbc02af9f244340d1ddc7568.tar yuzu-5af117e00cf35131cbc02af9f244340d1ddc7568.tar.gz yuzu-5af117e00cf35131cbc02af9f244340d1ddc7568.tar.bz2 yuzu-5af117e00cf35131cbc02af9f244340d1ddc7568.tar.lz yuzu-5af117e00cf35131cbc02af9f244340d1ddc7568.tar.xz yuzu-5af117e00cf35131cbc02af9f244340d1ddc7568.tar.zst yuzu-5af117e00cf35131cbc02af9f244340d1ddc7568.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/file_sys/archive_source_sd_savedata.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/core/file_sys/archive_source_sd_savedata.h b/src/core/file_sys/archive_source_sd_savedata.h new file mode 100644 index 000000000..b33126c31 --- /dev/null +++ b/src/core/file_sys/archive_source_sd_savedata.h @@ -0,0 +1,30 @@ +// Copyright 2016 Citra Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#pragma once + +#include <memory> +#include <string> +#include "core/file_sys/archive_backend.h" +#include "core/hle/result.h" + +//////////////////////////////////////////////////////////////////////////////////////////////////// +// FileSys namespace + +namespace FileSys { + +/// A common source of SD save data archive +class ArchiveSource_SDSaveData { +public: + explicit ArchiveSource_SDSaveData(const std::string& mount_point); + + ResultVal<std::unique_ptr<ArchiveBackend>> Open(u64 program_id); + ResultCode Format(u64 program_id, const FileSys::ArchiveFormatInfo& format_info); + ResultVal<ArchiveFormatInfo> GetFormatInfo(u64 program_id) const; + +private: + std::string mount_point; +}; + +} // namespace FileSys |