diff options
| author | 2014-12-04 22:07:47 -0500 | |
|---|---|---|
| committer | 2014-12-04 22:07:47 -0500 | |
| commit | 5056329a8003115f61859b97c2fc6ef2f460a0d3 (patch) | |
| tree | 9434ac214d06a5d55ff20848f57cb981647991dc /src/core/hle/kernel/archive.h | |
| parent | Merge pull request #248 from lioncash/kernel (diff) | |
| parent | Updated archive.cpp functions for proper error handling (diff) | |
| download | yuzu-5056329a8003115f61859b97c2fc6ef2f460a0d3.tar.gz yuzu-5056329a8003115f61859b97c2fc6ef2f460a0d3.tar.xz yuzu-5056329a8003115f61859b97c2fc6ef2f460a0d3.zip | |
Merge pull request #222 from archshift/renamexyz
Implemented RenameFile and RenameDirectory in FS:USER
Diffstat (limited to 'src/core/hle/kernel/archive.h')
| -rw-r--r-- | src/core/hle/kernel/archive.h | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/src/core/hle/kernel/archive.h b/src/core/hle/kernel/archive.h index 6fc4f0f25..b50833a2b 100644 --- a/src/core/hle/kernel/archive.h +++ b/src/core/hle/kernel/archive.h | |||
| @@ -50,7 +50,18 @@ ResultVal<Handle> OpenFileFromArchive(Handle archive_handle, const FileSys::Path | |||
| 50 | * @param path Path to the File inside of the Archive | 50 | * @param path Path to the File inside of the Archive |
| 51 | * @return Whether deletion succeeded | 51 | * @return Whether deletion succeeded |
| 52 | */ | 52 | */ |
| 53 | Result DeleteFileFromArchive(Handle archive_handle, const FileSys::Path& path); | 53 | ResultCode DeleteFileFromArchive(Handle archive_handle, const FileSys::Path& path); |
| 54 | |||
| 55 | /** | ||
| 56 | * Rename a File between two Archives | ||
| 57 | * @param src_archive_handle Handle to the source Archive object | ||
| 58 | * @param src_path Path to the File inside of the source Archive | ||
| 59 | * @param dest_archive_handle Handle to the destination Archive object | ||
| 60 | * @param dest_path Path to the File inside of the destination Archive | ||
| 61 | * @return Whether rename succeeded | ||
| 62 | */ | ||
| 63 | ResultCode RenameFileBetweenArchives(Handle src_archive_handle, const FileSys::Path& src_path, | ||
| 64 | Handle dest_archive_handle, const FileSys::Path& dest_path); | ||
| 54 | 65 | ||
| 55 | /** | 66 | /** |
| 56 | * Delete a Directory from an Archive | 67 | * Delete a Directory from an Archive |
| @@ -58,7 +69,7 @@ Result DeleteFileFromArchive(Handle archive_handle, const FileSys::Path& path); | |||
| 58 | * @param path Path to the Directory inside of the Archive | 69 | * @param path Path to the Directory inside of the Archive |
| 59 | * @return Whether deletion succeeded | 70 | * @return Whether deletion succeeded |
| 60 | */ | 71 | */ |
| 61 | Result DeleteDirectoryFromArchive(Handle archive_handle, const FileSys::Path& path); | 72 | ResultCode DeleteDirectoryFromArchive(Handle archive_handle, const FileSys::Path& path); |
| 62 | 73 | ||
| 63 | /** | 74 | /** |
| 64 | * Create a Directory from an Archive | 75 | * Create a Directory from an Archive |
| @@ -66,7 +77,18 @@ Result DeleteDirectoryFromArchive(Handle archive_handle, const FileSys::Path& pa | |||
| 66 | * @param path Path to the Directory inside of the Archive | 77 | * @param path Path to the Directory inside of the Archive |
| 67 | * @return Whether creation of directory succeeded | 78 | * @return Whether creation of directory succeeded |
| 68 | */ | 79 | */ |
| 69 | Result CreateDirectoryFromArchive(Handle archive_handle, const FileSys::Path& path); | 80 | ResultCode CreateDirectoryFromArchive(Handle archive_handle, const FileSys::Path& path); |
| 81 | |||
| 82 | /** | ||
| 83 | * Rename a Directory between two Archives | ||
| 84 | * @param src_archive_handle Handle to the source Archive object | ||
| 85 | * @param src_path Path to the Directory inside of the source Archive | ||
| 86 | * @param dest_archive_handle Handle to the destination Archive object | ||
| 87 | * @param dest_path Path to the Directory inside of the destination Archive | ||
| 88 | * @return Whether rename succeeded | ||
| 89 | */ | ||
| 90 | ResultCode RenameDirectoryBetweenArchives(Handle src_archive_handle, const FileSys::Path& src_path, | ||
| 91 | Handle dest_archive_handle, const FileSys::Path& dest_path); | ||
| 70 | 92 | ||
| 71 | /** | 93 | /** |
| 72 | * Open a Directory from an Archive | 94 | * Open a Directory from an Archive |