diff options
author | Lioncash <mathew1800@gmail.com> | 2018-11-30 20:44:13 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-12-01 02:17:28 +0100 |
commit | a7d9fe993a3e0e4d939752d2e447cc2b5fdb80f0 (patch) | |
tree | f5932b1a6b6451c41565b9b5a74dfff4f44fb6f0 /src/core/hle/service/filesystem/fsp_srv.cpp | |
parent | Merge pull request #1829 from lioncash/lang (diff) | |
download | yuzu-a7d9fe993a3e0e4d939752d2e447cc2b5fdb80f0.tar yuzu-a7d9fe993a3e0e4d939752d2e447cc2b5fdb80f0.tar.gz yuzu-a7d9fe993a3e0e4d939752d2e447cc2b5fdb80f0.tar.bz2 yuzu-a7d9fe993a3e0e4d939752d2e447cc2b5fdb80f0.tar.lz yuzu-a7d9fe993a3e0e4d939752d2e447cc2b5fdb80f0.tar.xz yuzu-a7d9fe993a3e0e4d939752d2e447cc2b5fdb80f0.tar.zst yuzu-a7d9fe993a3e0e4d939752d2e447cc2b5fdb80f0.zip |
Diffstat (limited to 'src/core/hle/service/filesystem/fsp_srv.cpp')
-rw-r--r-- | src/core/hle/service/filesystem/fsp_srv.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cpp index 99d9ebc39..694ec40ec 100644 --- a/src/core/hle/service/filesystem/fsp_srv.cpp +++ b/src/core/hle/service/filesystem/fsp_srv.cpp @@ -291,7 +291,7 @@ public: {10, &IFileSystem::Commit, "Commit"}, {11, nullptr, "GetFreeSpaceSize"}, {12, nullptr, "GetTotalSpaceSize"}, - {13, nullptr, "CleanDirectoryRecursively"}, + {13, &IFileSystem::CleanDirectoryRecursively, "CleanDirectoryRecursively"}, {14, nullptr, "GetFileTimeStampRaw"}, {15, nullptr, "QueryEntry"}, }; @@ -361,6 +361,16 @@ public: rb.Push(backend.DeleteDirectoryRecursively(name)); } + void CleanDirectoryRecursively(Kernel::HLERequestContext& ctx) { + const auto file_buffer = ctx.ReadBuffer(); + const std::string name = Common::StringFromBuffer(file_buffer); + + LOG_DEBUG(Service_FS, "called. Directory: {}", name); + + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(backend.CleanDirectoryRecursively(name)); + } + void RenameFile(Kernel::HLERequestContext& ctx) { IPC::RequestParser rp{ctx}; |