summaryrefslogtreecommitdiff
path: root/src/core/file_sys/archive.h
diff options
context:
space:
mode:
authorGravatar bunnei2014-11-23 20:02:23 -0500
committerGravatar bunnei2014-11-23 20:02:23 -0500
commitef1b16a7eb3da11d18e68521ddd996e8f48f3aa1 (patch)
tree5562cdcd5eaa63021832dab60abfbb2756533838 /src/core/file_sys/archive.h
parentMerge pull request #220 from yuriks/patch-1 (diff)
parentAdded DeleteFile and DeleteDirectory functions to FS:USER and the archives. (diff)
downloadyuzu-ef1b16a7eb3da11d18e68521ddd996e8f48f3aa1.tar.gz
yuzu-ef1b16a7eb3da11d18e68521ddd996e8f48f3aa1.tar.xz
yuzu-ef1b16a7eb3da11d18e68521ddd996e8f48f3aa1.zip
Merge pull request #191 from archshift/deletexyz
Added DeleteFile and DeleteDirectory functions to FS:USER and the archives.
Diffstat (limited to 'src/core/file_sys/archive.h')
-rw-r--r--src/core/file_sys/archive.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/core/file_sys/archive.h b/src/core/file_sys/archive.h
index 1135d8804..2e79bb883 100644
--- a/src/core/file_sys/archive.h
+++ b/src/core/file_sys/archive.h
@@ -185,6 +185,20 @@ public:
185 virtual std::unique_ptr<File> OpenFile(const Path& path, const Mode mode) const = 0; 185 virtual std::unique_ptr<File> OpenFile(const Path& path, const Mode mode) const = 0;
186 186
187 /** 187 /**
188 * Delete a file specified by its path
189 * @param path Path relative to the archive
190 * @return Whether the file could be deleted
191 */
192 virtual bool DeleteFile(const FileSys::Path& path) const = 0;
193
194 /**
195 * Delete a directory specified by its path
196 * @param path Path relative to the archive
197 * @return Whether the directory could be deleted
198 */
199 virtual bool DeleteDirectory(const FileSys::Path& path) const = 0;
200
201 /**
188 * Create a directory specified by its path 202 * Create a directory specified by its path
189 * @param path Path relative to the archive 203 * @param path Path relative to the archive
190 * @return Whether the directory could be created 204 * @return Whether the directory could be created