diff options
author | Subv <subv2112@gmail.com> | 2014-12-16 06:33:41 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2014-12-18 01:21:38 +0100 |
commit | ea9ce0fba776eef8f9e4f3a86e71256091732a14 (patch) | |
tree | 9e698ba00993a4aff1df4d60f9fcf3cf135ee76c /src/core/file_sys/archive_savedata.h | |
parent | Merge pull request #293 from lioncash/sops (diff) | |
download | yuzu-ea9ce0fba776eef8f9e4f3a86e71256091732a14.tar yuzu-ea9ce0fba776eef8f9e4f3a86e71256091732a14.tar.gz yuzu-ea9ce0fba776eef8f9e4f3a86e71256091732a14.tar.bz2 yuzu-ea9ce0fba776eef8f9e4f3a86e71256091732a14.tar.lz yuzu-ea9ce0fba776eef8f9e4f3a86e71256091732a14.tar.xz yuzu-ea9ce0fba776eef8f9e4f3a86e71256091732a14.tar.zst yuzu-ea9ce0fba776eef8f9e4f3a86e71256091732a14.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 |