diff options
author | bunnei <bunneidev@gmail.com> | 2018-02-05 05:42:43 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-02-05 05:42:43 +0100 |
commit | 1d51b25ed154ec6e2bdbbcdfc11068defb1ecad1 (patch) | |
tree | 0483cbc3d950644b9a042232c497c46d4c4b263e /src | |
parent | nvflinger: Signal BufferQueue native handle event. (diff) | |
download | yuzu-1d51b25ed154ec6e2bdbbcdfc11068defb1ecad1.tar yuzu-1d51b25ed154ec6e2bdbbcdfc11068defb1ecad1.tar.gz yuzu-1d51b25ed154ec6e2bdbbcdfc11068defb1ecad1.tar.bz2 yuzu-1d51b25ed154ec6e2bdbbcdfc11068defb1ecad1.tar.lz yuzu-1d51b25ed154ec6e2bdbbcdfc11068defb1ecad1.tar.xz yuzu-1d51b25ed154ec6e2bdbbcdfc11068defb1ecad1.tar.zst yuzu-1d51b25ed154ec6e2bdbbcdfc11068defb1ecad1.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/service/set/set.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/service/set/set.cpp b/src/core/hle/service/set/set.cpp index d139304bb..1062ba8b3 100644 --- a/src/core/hle/service/set/set.cpp +++ b/src/core/hle/service/set/set.cpp @@ -13,16 +13,17 @@ namespace Service { namespace Set { void SET::GetAvailableLanguageCodes(Kernel::HLERequestContext& ctx) { + IPC::RequestParser rp{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()); - IPC::ResponseBuilder rb{ctx, 4}; + IPC::ResponseBuilder rb{ctx, 2}; rb.Push(RESULT_SUCCESS); - rb.Push(static_cast<u64>(lang_codes.size())); LOG_WARNING(Service_SET, "(STUBBED) called"); } |