diff options
author | bunnei <bunneidev@gmail.com> | 2018-02-14 05:16:19 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-02-14 05:54:13 +0100 |
commit | 516a95721c5ec7ae2f09cb1e7c9757903523d09e (patch) | |
tree | da87ccf3fbe378c9231ff935fd65018303c25040 /src/core/hle/service/set/set.cpp | |
parent | audio: Use WriteBuffer instead of BufferDescriptorB. (diff) | |
download | yuzu-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/set/set.cpp')
-rw-r--r-- | src/core/hle/service/set/set.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/hle/service/set/set.cpp b/src/core/hle/service/set/set.cpp index 1062ba8b3..3001ee411 100644 --- a/src/core/hle/service/set/set.cpp +++ b/src/core/hle/service/set/set.cpp @@ -17,9 +17,7 @@ void SET::GetAvailableLanguageCodes(Kernel::HLERequestContext& ctx) { u32 id = rp.Pop<u32>(); constexpr std::array<u8, 13> lang_codes{}; - const auto& output_buffer = ctx.BufferDescriptorC()[0]; - - Memory::WriteBlock(output_buffer.Address(), lang_codes.data(), lang_codes.size()); + ctx.WriteBuffer(lang_codes.data(), lang_codes.size()); IPC::ResponseBuilder rb{ctx, 2}; |