diff options
author | wwylele <wwylele@gmail.com> | 2016-10-02 05:29:04 +0200 |
---|---|---|
committer | wwylele <wwylele@gmail.com> | 2016-10-02 05:29:16 +0200 |
commit | 96b0e9476bdd010051bec427d365b49437801f4d (patch) | |
tree | 6a80eef8c0fbbf7e891755a102fcc8674efb1f26 /src/core/hle/service/fs/archive.cpp | |
parent | Merge pull request #2083 from yuriks/opengl-scissor-cached-rect (diff) | |
download | yuzu-96b0e9476bdd010051bec427d365b49437801f4d.tar yuzu-96b0e9476bdd010051bec427d365b49437801f4d.tar.gz yuzu-96b0e9476bdd010051bec427d365b49437801f4d.tar.bz2 yuzu-96b0e9476bdd010051bec427d365b49437801f4d.tar.lz yuzu-96b0e9476bdd010051bec427d365b49437801f4d.tar.xz yuzu-96b0e9476bdd010051bec427d365b49437801f4d.tar.zst yuzu-96b0e9476bdd010051bec427d365b49437801f4d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/fs/archive.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/hle/service/fs/archive.cpp b/src/core/hle/service/fs/archive.cpp index 4dc7e1e3c..7f9696bfb 100644 --- a/src/core/hle/service/fs/archive.cpp +++ b/src/core/hle/service/fs/archive.cpp @@ -362,6 +362,18 @@ ResultCode DeleteDirectoryFromArchive(ArchiveHandle archive_handle, const FileSy ErrorSummary::Canceled, ErrorLevel::Status); } +ResultCode DeleteDirectoryRecursivelyFromArchive(ArchiveHandle archive_handle, + const FileSys::Path& path) { + ArchiveBackend* archive = GetArchive(archive_handle); + if (archive == nullptr) + return ERR_INVALID_ARCHIVE_HANDLE; + + if (archive->DeleteDirectoryRecursively(path)) + return RESULT_SUCCESS; + return ResultCode(ErrorDescription::NoData, ErrorModule::FS, // TODO: verify description + ErrorSummary::Canceled, ErrorLevel::Status); +} + ResultCode CreateFileInArchive(ArchiveHandle archive_handle, const FileSys::Path& path, u64 file_size) { ArchiveBackend* archive = GetArchive(archive_handle); |