summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/filesystem/fsp_srv.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-02-14 05:16:19 +0100
committerbunnei <bunneidev@gmail.com>2018-02-14 05:54:13 +0100
commit516a95721c5ec7ae2f09cb1e7c9757903523d09e (patch)
treeda87ccf3fbe378c9231ff935fd65018303c25040 /src/core/hle/service/filesystem/fsp_srv.cpp
parentaudio: Use WriteBuffer instead of BufferDescriptorB. (diff)
downloadyuzu-516a95721c5ec7ae2f09cb1e7c9757903523d09e.tar
yuzu-516a95721c5ec7ae2f09cb1e7c9757903523d09e.tar.gz
yuzu-516a95721c5ec7ae2f09cb1e7c9757903523d09e.tar.bz2
yuzu-516a95721c5ec7ae2f09cb1e7c9757903523d09e.tar.lz
yuzu-516a95721c5ec7ae2f09cb1e7c9757903523d09e.tar.xz
yuzu-516a95721c5ec7ae2f09cb1e7c9757903523d09e.tar.zst
yuzu-516a95721c5ec7ae2f09cb1e7c9757903523d09e.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/filesystem/fsp_srv.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cpp
index 34d4fd035..87a07e457 100644
--- a/src/core/hle/service/filesystem/fsp_srv.cpp
+++ b/src/core/hle/service/filesystem/fsp_srv.cpp
@@ -33,12 +33,10 @@ private:
IPC::RequestParser rp{ctx};
const s64 offset = rp.Pop<s64>();
const s64 length = rp.Pop<s64>();
- const auto& descriptor = ctx.BufferDescriptorB()[0];
LOG_DEBUG(Service_FS, "called, offset=0x%llx, length=0x%llx", offset, length);
// Error checking
- ASSERT_MSG(length == descriptor.Size(), "unexpected size difference");
if (length < 0) {
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultCode(ErrorModule::FS, ErrorDescription::InvalidLength));
@@ -60,7 +58,7 @@ private:
}
// Write the data to memory
- Memory::WriteBlock(descriptor.Address(), output.data(), descriptor.Size());
+ ctx.WriteBuffer(output);
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(RESULT_SUCCESS);