From 72b03025ac4ef0d8633c2f3e55b513cd149c59e5 Mon Sep 17 00:00:00 2001 From: bunnei Date: Thu, 12 Oct 2017 21:21:49 -0400 Subject: Remove lots more 3DS-specific code. --- src/core/file_sys/archive_sdmcwriteonly.h | 57 ------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 src/core/file_sys/archive_sdmcwriteonly.h (limited to 'src/core/file_sys/archive_sdmcwriteonly.h') 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> OpenFile(const Path& path, - const Mode& mode) const override; - - ResultVal> 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> Open(const Path& path) override; - ResultCode Format(const Path& path, const FileSys::ArchiveFormatInfo& format_info) override; - ResultVal GetFormatInfo(const Path& path) const override; - -private: - std::string sdmc_directory; -}; - -} // namespace FileSys -- cgit v1.2.3