diff options
author | bunnei <bunneidev@gmail.com> | 2016-12-07 16:17:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-07 16:17:02 +0100 |
commit | 8d529a5cda86f6c59f21829d8a15deb5586c1c8d (patch) | |
tree | 06d0905c9fe39743cad4f71d9dd95321226cc61c /src/core/file_sys/archive_source_sd_savedata.h | |
parent | Implement Frame rate limiter (#2223) (diff) | |
parent | FileSys: Implement OtherSaveData (diff) | |
download | yuzu-8d529a5cda86f6c59f21829d8a15deb5586c1c8d.tar yuzu-8d529a5cda86f6c59f21829d8a15deb5586c1c8d.tar.gz yuzu-8d529a5cda86f6c59f21829d8a15deb5586c1c8d.tar.bz2 yuzu-8d529a5cda86f6c59f21829d8a15deb5586c1c8d.tar.lz yuzu-8d529a5cda86f6c59f21829d8a15deb5586c1c8d.tar.xz yuzu-8d529a5cda86f6c59f21829d8a15deb5586c1c8d.tar.zst yuzu-8d529a5cda86f6c59f21829d8a15deb5586c1c8d.zip |
Diffstat (limited to 'src/core/file_sys/archive_source_sd_savedata.h')
-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 |