diff options
| author | 2014-10-28 22:52:56 -0700 | |
|---|---|---|
| committer | 2014-11-02 10:48:28 -0800 | |
| commit | 04c90c395d27e6bc205fb2d933ced50e70c1841a (patch) | |
| tree | 18f5e206016e383ad07493e3ad5ba1279301e6a8 /src/core/file_sys/archive.h | |
| parent | Merge pull request #178 from archshift/errf (diff) | |
| download | yuzu-04c90c395d27e6bc205fb2d933ced50e70c1841a.tar.gz yuzu-04c90c395d27e6bc205fb2d933ced50e70c1841a.tar.xz yuzu-04c90c395d27e6bc205fb2d933ced50e70c1841a.zip | |
Added CreateDirectory function to service/fs.cpp, and in Archive.
Diffstat (limited to 'src/core/file_sys/archive.h')
| -rw-r--r-- | src/core/file_sys/archive.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/file_sys/archive.h b/src/core/file_sys/archive.h index 560db6dea..aeabf09ac 100644 --- a/src/core/file_sys/archive.h +++ b/src/core/file_sys/archive.h | |||
| @@ -57,6 +57,13 @@ public: | |||
| 57 | virtual std::unique_ptr<File> OpenFile(const std::string& path, const Mode mode) const = 0; | 57 | virtual std::unique_ptr<File> OpenFile(const std::string& path, const Mode mode) const = 0; |
| 58 | 58 | ||
| 59 | /** | 59 | /** |
| 60 | * Create a directory specified by its path | ||
| 61 | * @param path Path relative to the archive | ||
| 62 | * @return Whether the directory could be created | ||
| 63 | */ | ||
| 64 | virtual bool CreateDirectory(const std::string& path) const = 0; | ||
| 65 | |||
| 66 | /** | ||
| 60 | * Open a directory specified by its path | 67 | * Open a directory specified by its path |
| 61 | * @param path Path relative to the archive | 68 | * @param path Path relative to the archive |
| 62 | * @return Opened directory, or nullptr | 69 | * @return Opened directory, or nullptr |