diff options
author | bunnei <bunneidev@gmail.com> | 2017-10-13 03:21:49 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2017-10-13 03:21:49 +0200 |
commit | 72b03025ac4ef0d8633c2f3e55b513cd149c59e5 (patch) | |
tree | f1fbeb915a0b3df8e4e988a6a562a763e18ea666 /src/core/file_sys/archive_sdmcwriteonly.h | |
parent | hle: Remove a large amount of 3ds-specific service code. (diff) | |
download | yuzu-72b03025ac4ef0d8633c2f3e55b513cd149c59e5.tar yuzu-72b03025ac4ef0d8633c2f3e55b513cd149c59e5.tar.gz yuzu-72b03025ac4ef0d8633c2f3e55b513cd149c59e5.tar.bz2 yuzu-72b03025ac4ef0d8633c2f3e55b513cd149c59e5.tar.lz yuzu-72b03025ac4ef0d8633c2f3e55b513cd149c59e5.tar.xz yuzu-72b03025ac4ef0d8633c2f3e55b513cd149c59e5.tar.zst yuzu-72b03025ac4ef0d8633c2f3e55b513cd149c59e5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/file_sys/archive_sdmcwriteonly.h | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/src/core/file_sys/archive_sdmcwriteonly.h b/src/core/file_sys/archive_sdmcwriteonly.h deleted file mode 100644 index 9cd38d96f..000000000 --- a/src/core/file_sys/archive_sdmcwriteonly.h +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2016 Citra Emulator Project -// Licensed under GPLv2 or any later version -// Refer to the license.txt file included. - -#pragma once - -#include "core/file_sys/archive_sdmc.h" - -//////////////////////////////////////////////////////////////////////////////////////////////////// -// FileSys namespace - -namespace FileSys { - -/** - * Archive backend for SDMC write-only archive. - * The behaviour of SDMCWriteOnlyArchive is almost the same as SDMCArchive, except for - * - OpenDirectory is unsupported; - * - OpenFile with read flag is unsupported. - */ -class SDMCWriteOnlyArchive : public SDMCArchive { -public: - explicit SDMCWriteOnlyArchive(const std::string& mount_point) : SDMCArchive(mount_point) {} - - std::string GetName() const override { - return "SDMCWriteOnlyArchive: " + mount_point; - } - - ResultVal<std::unique_ptr<FileBackend>> OpenFile(const Path& path, - const Mode& mode) const override; - - ResultVal<std::unique_ptr<DirectoryBackend>> OpenDirectory(const Path& path) const override; -}; - -/// File system interface to the SDMC write-only archive -class ArchiveFactory_SDMCWriteOnly final : public ArchiveFactory { -public: - explicit ArchiveFactory_SDMCWriteOnly(const std::string& mount_point); - - /** - * Initialize the archive. - * @return true if it initialized successfully - */ - bool Initialize(); - - std::string GetName() const override { - return "SDMCWriteOnly"; - } - - ResultVal<std::unique_ptr<ArchiveBackend>> Open(const Path& path) override; - ResultCode Format(const Path& path, const FileSys::ArchiveFormatInfo& format_info) override; - ResultVal<ArchiveFormatInfo> GetFormatInfo(const Path& path) const override; - -private: - std::string sdmc_directory; -}; - -} // namespace FileSys |