sdmc_factory.h 823 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2018 yuzu emulator team
  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 "common/common_types.h"
  8. #include "core/file_sys/filesystem.h"
  9. #include "core/hle/result.h"
  10. namespace FileSys {
  11. /// File system interface to the SDCard archive
  12. class SDMC_Factory final : public FileSystemFactory {
  13. public:
  14. explicit SDMC_Factory(std::string sd_directory);
  15. std::string GetName() const override {
  16. return "SDMC_Factory";
  17. }
  18. ResultVal<std::unique_ptr<FileSystemBackend>> Open(const Path& path) override;
  19. ResultCode Format(const Path& path) override;
  20. ResultVal<ArchiveFormatInfo> GetFormatInfo(const Path& path) const override;
  21. private:
  22. std::string sd_directory;
  23. };
  24. } // namespace FileSys