mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 20:25:47 +00:00
Core: Add a new File class, obtainable from an Archive, and a stub implementation.
This commit is contained in:
parent
6b7b36a874
commit
9251f7e2f8
7 changed files with 208 additions and 0 deletions
|
@ -28,6 +28,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue