Core: Add a method to obtain a Directory from an Archive.
This commit is contained in:
parent
33b0d1081e
commit
c14e5713f5
5 changed files with 44 additions and 0 deletions
|
@ -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<File> 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<Directory> OpenDirectory(const std::string& path) const = 0;
|
||||
|
||||
/**
|
||||
* Read data from the archive
|
||||
* @param offset Offset in bytes to start reading data from
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue