mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-22 08:38:00 -05:00
Core: Add a method to obtain a Directory from an Archive.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user