From c14e5713f52cd58f2a8206d844448a8c2d1a54b6 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 12 Sep 2014 00:47:05 +0200 Subject: Core: Add a method to obtain a Directory from an Archive. --- src/core/file_sys/archive.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/core/file_sys/archive.h') diff --git a/src/core/file_sys/archive.h b/src/core/file_sys/archive.h index 67440ef58..560db6dea 100644 --- a/src/core/file_sys/archive.h +++ b/src/core/file_sys/archive.h @@ -10,6 +10,7 @@ #include "common/bit_field.h" #include "core/file_sys/file.h" +#include "core/file_sys/directory.h" #include "core/hle/kernel/kernel.h" @@ -55,6 +56,13 @@ public: */ virtual std::unique_ptr OpenFile(const std::string& path, const Mode mode) const = 0; + /** + * Open a directory specified by its path + * @param path Path relative to the archive + * @return Opened directory, or nullptr + */ + virtual std::unique_ptr OpenDirectory(const std::string& path) const = 0; + /** * Read data from the archive * @param offset Offset in bytes to start reading data from -- cgit v1.2.3