mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-11 00:27:59 -05:00
Core: Add a method to obtain a Directory from an Archive.
This commit is contained in:
@ -5,6 +5,7 @@
|
||||
#include "common/common_types.h"
|
||||
|
||||
#include "core/file_sys/archive_romfs.h"
|
||||
#include "core/file_sys/directory_romfs.h"
|
||||
#include "core/file_sys/file_romfs.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
@ -32,6 +33,15 @@ std::unique_ptr<File> Archive_RomFS::OpenFile(const std::string& path, const Mod
|
||||
return std::unique_ptr<File>(new File_RomFS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Open a directory specified by its path
|
||||
* @param path Path relative to the archive
|
||||
* @return Opened directory, or nullptr
|
||||
*/
|
||||
std::unique_ptr<Directory> Archive_RomFS::OpenDirectory(const std::string& path) const {
|
||||
return std::unique_ptr<Directory>(new Directory_RomFS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Read data from the archive
|
||||
* @param offset Offset in bytes to start reading data from
|
||||
|
Reference in New Issue
Block a user