diff options
author | bunnei <bunneidev@gmail.com> | 2014-12-18 02:02:57 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-12-18 02:02:57 +0100 |
commit | 94a103a00080f3f8f9ca9348ec0c5e819c6313e1 (patch) | |
tree | 9e698ba00993a4aff1df4d60f9fcf3cf135ee76c /src/core/file_sys/archive_savedata.h | |
parent | Merge pull request #293 from lioncash/sops (diff) | |
parent | Filesystem/Archives: Implemented the SaveData archive (diff) | |
download | yuzu-94a103a00080f3f8f9ca9348ec0c5e819c6313e1.tar yuzu-94a103a00080f3f8f9ca9348ec0c5e819c6313e1.tar.gz yuzu-94a103a00080f3f8f9ca9348ec0c5e819c6313e1.tar.bz2 yuzu-94a103a00080f3f8f9ca9348ec0c5e819c6313e1.tar.lz yuzu-94a103a00080f3f8f9ca9348ec0c5e819c6313e1.tar.xz yuzu-94a103a00080f3f8f9ca9348ec0c5e819c6313e1.tar.zst yuzu-94a103a00080f3f8f9ca9348ec0c5e819c6313e1.zip |
Diffstat (limited to 'src/core/file_sys/archive_savedata.h')
-rw-r--r-- | src/core/file_sys/archive_savedata.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/core/file_sys/archive_savedata.h b/src/core/file_sys/archive_savedata.h new file mode 100644 index 000000000..b3e561130 --- /dev/null +++ b/src/core/file_sys/archive_savedata.h @@ -0,0 +1,32 @@ +// Copyright 2014 Citra Emulator Project +// Licensed under GPLv2+ +// Refer to the license.txt file included. + +#pragma once + +#include "common/common_types.h" + +#include "core/file_sys/disk_archive.h" +#include "core/loader/loader.h" + +//////////////////////////////////////////////////////////////////////////////////////////////////// +// FileSys namespace + +namespace FileSys { + +/// File system interface to the SaveData archive +class Archive_SaveData final : public DiskArchive { +public: + Archive_SaveData(const std::string& mount_point, u64 program_id); + + /** + * Initialize the archive. + * @return CreateSaveDataResult AlreadyExists if the SaveData folder already exists, + * Success if it was created properly and Failure if there was any error + */ + bool Initialize(); + + std::string GetName() const override { return "SaveData"; } +}; + +} // namespace FileSys |