aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/file_sys/archive_romfs.h
diff options
context:
space:
mode:
authorGravatar Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>2014-09-12 00:42:59 +0200
committerGravatar Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>2014-09-17 14:35:45 +0000
commit9251f7e2f8dbb507f0846c680c6f2af155724e7a (patch)
treea546468995e6eb11d7d569f3e7df6c3fcf148e81 /src/core/file_sys/archive_romfs.h
parent6b7b36a8745ddfd0e24fa51ef74dbc3058b3dacc (diff)
Core: Add a new File class, obtainable from an Archive, and a stub implementation.
Diffstat (limited to 'src/core/file_sys/archive_romfs.h')
-rw-r--r--src/core/file_sys/archive_romfs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/file_sys/archive_romfs.h b/src/core/file_sys/archive_romfs.h
index e9ed6f77..a7669dd7 100644
--- a/src/core/file_sys/archive_romfs.h
+++ b/src/core/file_sys/archive_romfs.h
@@ -29,6 +29,14 @@ public:
IdCode GetIdCode() const override { return IdCode::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> OpenFile(const std::string& path, const Mode mode) const override;
+
+ /**
* 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