diff options
| author | 2014-11-11 10:37:26 -0800 | |
|---|---|---|
| committer | 2014-11-23 00:33:43 -0800 | |
| commit | 8aeadbd95a85e2d42d282897d7d286d645d61f27 (patch) | |
| tree | 5cc15bf131a6cfb3e6a0834e07ca2d007f612a7e /src/core/hle/kernel/archive.h | |
| parent | Merge pull request #192 from bunnei/fs-fix-paths (diff) | |
| download | yuzu-8aeadbd95a85e2d42d282897d7d286d645d61f27.tar.gz yuzu-8aeadbd95a85e2d42d282897d7d286d645d61f27.tar.xz yuzu-8aeadbd95a85e2d42d282897d7d286d645d61f27.zip | |
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.h | 16 |
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); | |||
| 46 | Handle OpenFileFromArchive(Handle archive_handle, const FileSys::Path& path, const FileSys::Mode mode); | 46 | Handle 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 | */ | ||
| 54 | Result 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 | */ | ||
| 62 | Result 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 |