mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-24 04:16:24 -05:00
set: GetAvailableLanguageCodes should not return lang_codes size.
This commit is contained in:
parent
fe99052599
commit
1d51b25ed1
1 changed files with 3 additions and 2 deletions
|
@ -13,16 +13,17 @@ namespace Service {
|
||||||
namespace Set {
|
namespace Set {
|
||||||
|
|
||||||
void SET::GetAvailableLanguageCodes(Kernel::HLERequestContext& ctx) {
|
void SET::GetAvailableLanguageCodes(Kernel::HLERequestContext& ctx) {
|
||||||
|
IPC::RequestParser rp{ctx};
|
||||||
|
u32 id = rp.Pop<u32>();
|
||||||
constexpr std::array<u8, 13> lang_codes{};
|
constexpr std::array<u8, 13> lang_codes{};
|
||||||
|
|
||||||
const auto& output_buffer = ctx.BufferDescriptorC()[0];
|
const auto& output_buffer = ctx.BufferDescriptorC()[0];
|
||||||
|
|
||||||
Memory::WriteBlock(output_buffer.Address(), lang_codes.data(), lang_codes.size());
|
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(RESULT_SUCCESS);
|
||||||
rb.Push(static_cast<u64>(lang_codes.size()));
|
|
||||||
|
|
||||||
LOG_WARNING(Service_SET, "(STUBBED) called");
|
LOG_WARNING(Service_SET, "(STUBBED) called");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue