diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2014-09-12 00:42:59 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2014-09-17 16:35:45 +0200 |
commit | 9251f7e2f8dbb507f0846c680c6f2af155724e7a (patch) | |
tree | a546468995e6eb11d7d569f3e7df6c3fcf148e81 /src/core/file_sys/archive_romfs.cpp | |
parent | Common: Rename the File namespace to FileUtil, to match the filename and prevent collisions. (diff) | |
download | yuzu-9251f7e2f8dbb507f0846c680c6f2af155724e7a.tar yuzu-9251f7e2f8dbb507f0846c680c6f2af155724e7a.tar.gz yuzu-9251f7e2f8dbb507f0846c680c6f2af155724e7a.tar.bz2 yuzu-9251f7e2f8dbb507f0846c680c6f2af155724e7a.tar.lz yuzu-9251f7e2f8dbb507f0846c680c6f2af155724e7a.tar.xz yuzu-9251f7e2f8dbb507f0846c680c6f2af155724e7a.tar.zst yuzu-9251f7e2f8dbb507f0846c680c6f2af155724e7a.zip |
Diffstat (limited to 'src/core/file_sys/archive_romfs.cpp')
-rw-r--r-- | src/core/file_sys/archive_romfs.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/file_sys/archive_romfs.cpp b/src/core/file_sys/archive_romfs.cpp index dc3fb1807..99ded4d8b 100644 --- a/src/core/file_sys/archive_romfs.cpp +++ b/src/core/file_sys/archive_romfs.cpp @@ -5,6 +5,7 @@ #include "common/common_types.h" #include "core/file_sys/archive_romfs.h" +#include "core/file_sys/file_romfs.h" //////////////////////////////////////////////////////////////////////////////////////////////////// // FileSys namespace @@ -22,6 +23,16 @@ Archive_RomFS::~Archive_RomFS() { } /** + * Open a file specified by its path, using the specified mode + * @param path Path relative to the archive + * @param mode Mode to open the file with + * @return Opened file, or nullptr + */ +std::unique_ptr<File> Archive_RomFS::OpenFile(const std::string& path, const Mode mode) const { + return std::unique_ptr<File>(new File_RomFS); +} + +/** * Read data from the archive * @param offset Offset in bytes to start reading data from * @param length Length in bytes of data to read from archive |