summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-04-15 03:21:34 +0200
committerGitHub <noreply@github.com>2018-04-15 03:21:34 +0200
commit778be45103b43d3f08018201461c05aba442db3d (patch)
tree0d42bcb90faa3838f3e8b7e1dfdccc95faef3490
parentMerge pull request #329 from bunnei/shader-gen-part-1 (diff)
parentfsp_srv: Implement IFile::Flush. (diff)
downloadyuzu-778be45103b43d3f08018201461c05aba442db3d.tar
yuzu-778be45103b43d3f08018201461c05aba442db3d.tar.gz
yuzu-778be45103b43d3f08018201461c05aba442db3d.tar.bz2
yuzu-778be45103b43d3f08018201461c05aba442db3d.tar.lz
yuzu-778be45103b43d3f08018201461c05aba442db3d.tar.xz
yuzu-778be45103b43d3f08018201461c05aba442db3d.tar.zst
yuzu-778be45103b43d3f08018201461c05aba442db3d.zip
-rw-r--r--src/core/hle/service/filesystem/fsp_srv.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cpp
index 48c45b1b4..458210a55 100644
--- a/src/core/hle/service/filesystem/fsp_srv.cpp
+++ b/src/core/hle/service/filesystem/fsp_srv.cpp
@@ -73,7 +73,7 @@ public:
: ServiceFramework("IFile"), backend(std::move(backend)) {
static const FunctionInfo functions[] = {
{0, &IFile::Read, "Read"}, {1, &IFile::Write, "Write"},
- {2, nullptr, "Flush"}, {3, &IFile::SetSize, "SetSize"},
+ {2, &IFile::Flush, "Flush"}, {3, &IFile::SetSize, "SetSize"},
{4, &IFile::GetSize, "GetSize"}, {5, nullptr, "OperateRange"},
};
RegisterHandlers(functions);
@@ -152,6 +152,14 @@ private:
rb.Push(RESULT_SUCCESS);
}
+ void Flush(Kernel::HLERequestContext& ctx) {
+ LOG_DEBUG(Service_FS, "called");
+ backend->Flush();
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(RESULT_SUCCESS);
+ }
+
void SetSize(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u64 size = rp.Pop<u64>();