summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/disk_archive.h
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2016-10-19 15:42:47 +0200
committerwwylele <wwylele@gmail.com>2016-11-19 17:55:34 +0100
commitf775a3781bde276707b27ec220f4c7ca18062767 (patch)
tree510aa2d0cc269eff111191a64c2a53fe58356062 /src/core/file_sys/disk_archive.h
parentPTM & CFG: use the correct path and error code according to the new FileSys policy (diff)
downloadyuzu-f775a3781bde276707b27ec220f4c7ca18062767.tar
yuzu-f775a3781bde276707b27ec220f4c7ca18062767.tar.gz
yuzu-f775a3781bde276707b27ec220f4c7ca18062767.tar.bz2
yuzu-f775a3781bde276707b27ec220f4c7ca18062767.tar.lz
yuzu-f775a3781bde276707b27ec220f4c7ca18062767.tar.xz
yuzu-f775a3781bde276707b27ec220f4c7ca18062767.tar.zst
yuzu-f775a3781bde276707b27ec220f4c7ca18062767.zip
Diffstat (limited to '')
-rw-r--r--src/core/file_sys/disk_archive.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/core/file_sys/disk_archive.h b/src/core/file_sys/disk_archive.h
index c2c3c3b23..eb9166df6 100644
--- a/src/core/file_sys/disk_archive.h
+++ b/src/core/file_sys/disk_archive.h
@@ -20,38 +20,6 @@
namespace FileSys {
-/**
- * Helper which implements a backend accessing the host machine's filesystem.
- * This should be subclassed by concrete archive types, which will provide the
- * base directory on the host filesystem and override any required functionality.
- */
-class DiskArchive : public ArchiveBackend {
-public:
- DiskArchive(const std::string& mount_point_) : mount_point(mount_point_) {}
-
- virtual std::string GetName() const override {
- return "DiskArchive: " + mount_point;
- }
-
- ResultVal<std::unique_ptr<FileBackend>> OpenFile(const Path& path,
- const Mode& mode) const override;
- ResultCode DeleteFile(const Path& path) const override;
- ResultCode RenameFile(const Path& src_path, const Path& dest_path) const override;
- ResultCode DeleteDirectory(const Path& path) const override;
- ResultCode DeleteDirectoryRecursively(const Path& path) const override;
- ResultCode CreateFile(const Path& path, u64 size) const override;
- ResultCode CreateDirectory(const Path& path) const override;
- ResultCode RenameDirectory(const Path& src_path, const Path& dest_path) const override;
- ResultVal<std::unique_ptr<DirectoryBackend>> OpenDirectory(const Path& path) const override;
- u64 GetFreeBytes() const override;
-
-protected:
- friend class DiskFile;
- friend class DiskDirectory;
-
- std::string mount_point;
-};
-
class DiskFile : public FileBackend {
public:
DiskFile(FileUtil::IOFile&& file_, const Mode& mode_)