archive_savedatacheck.h 989 B

123456789101112131415161718192021222324252627282930313233
  1. // Copyright 2014 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <memory>
  6. #include <string>
  7. #include "core/file_sys/archive_backend.h"
  8. #include "core/hle/result.h"
  9. ////////////////////////////////////////////////////////////////////////////////////////////////////
  10. // FileSys namespace
  11. namespace FileSys {
  12. /// File system interface to the SaveDataCheck archive
  13. class ArchiveFactory_SaveDataCheck final : public ArchiveFactory {
  14. public:
  15. ArchiveFactory_SaveDataCheck(const std::string& mount_point);
  16. std::string GetName() const override { return "SaveDataCheck"; }
  17. ResultVal<std::unique_ptr<ArchiveBackend>> Open(const Path& path) override;
  18. ResultCode Format(const Path& path, const FileSys::ArchiveFormatInfo& format_info) override;
  19. ResultVal<ArchiveFormatInfo> GetFormatInfo(const Path& path) const override;
  20. private:
  21. std::string mount_point;
  22. };
  23. } // namespace FileSys