summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/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/hle/kernel/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/hle/kernel/archive.h')
-rw-r--r--src/core/hle/kernel/archive.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/core/hle/kernel/archive.h b/src/core/hle/kernel/archive.h
index 9c6015506..95b3c6656 100644
--- a/src/core/hle/kernel/archive.h
+++ b/src/core/hle/kernel/archive.h
@@ -46,6 +46,22 @@ Handle CreateArchive(FileSys::Archive* backend, const std::string& name);
46Handle OpenFileFromArchive(Handle archive_handle, const FileSys::Path& path, const FileSys::Mode mode); 46Handle OpenFileFromArchive(Handle archive_handle, const FileSys::Path& path, const FileSys::Mode mode);
47 47
48/** 48/**
49 * Delete a File from an Archive
50 * @param archive_handle Handle to an open Archive object
51 * @param path Path to the File inside of the Archive
52 * @return Whether deletion succeeded
53 */
54Result DeleteFileFromArchive(Handle archive_handle, const FileSys::Path& path);
55
56/**
57 * Delete a Directory from an Archive
58 * @param archive_handle Handle to an open Archive object
59 * @param path Path to the Directory inside of the Archive
60 * @return Whether deletion succeeded
61 */
62Result DeleteDirectoryFromArchive(Handle archive_handle, const FileSys::Path& path);
63
64/**
49 * Create a Directory from an Archive 65 * Create a Directory from an Archive
50 * @param archive_handle Handle to an open Archive object 66 * @param archive_handle Handle to an open Archive object
51 * @param path Path to the Directory inside of the Archive 67 * @param path Path to the Directory inside of the Archive