summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-04-15 01:46:09 +0200
committerbunnei <bunneidev@gmail.com>2018-04-15 01:46:09 +0200
commit9cab6809f2f2263a077deb299d641bf3c8602e91 (patch)
tree868514f83a16b12d3d2de3f01519c11914d40fa4 /src
parentMerge pull request #323 from Hexagon12/stub-hid (diff)
downloadyuzu-9cab6809f2f2263a077deb299d641bf3c8602e91.tar
yuzu-9cab6809f2f2263a077deb299d641bf3c8602e91.tar.gz
yuzu-9cab6809f2f2263a077deb299d641bf3c8602e91.tar.bz2
yuzu-9cab6809f2f2263a077deb299d641bf3c8602e91.tar.lz
yuzu-9cab6809f2f2263a077deb299d641bf3c8602e91.tar.xz
yuzu-9cab6809f2f2263a077deb299d641bf3c8602e91.tar.zst
yuzu-9cab6809f2f2263a077deb299d641bf3c8602e91.zip
Diffstat (limited to 'src')
-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>();