summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/am.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/am/am.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 'src/core/hle/service/am/am.cpp')
-rw-r--r--src/core/hle/service/am/am.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index 07cea8717..402105ea0 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -306,11 +306,11 @@ private:
u64 offset = rp.Pop<u64>();
- const auto& output_buffer = ctx.BufferDescriptorC()[0];
+ const size_t size{ctx.GetWriteBufferSize()};
- ASSERT(offset + output_buffer.Size() <= buffer.size());
+ ASSERT(offset + size <= buffer.size());
- Memory::WriteBlock(output_buffer.Address(), buffer.data() + offset, output_buffer.Size());
+ ctx.WriteBuffer(buffer.data() + offset, size);
IPC::ResponseBuilder rb{ctx, 2};