mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-15 01:20:06 +00:00
cecd: Fixup GetCecInfoBuffer params order (#7361)
While I was looking at the NEWS sysmodule, I noticed the params order for this command were backwards: the info type is the first param, followed by the buffer size. This is accurate to my reverse engineered code for the NEWS sysmodule.
This commit is contained in:
parent
6a7841d4b0
commit
c59ef7d793
@ -682,16 +682,16 @@ void Module::Interface::Stop(Kernel::HLERequestContext& ctx) {
|
||||
|
||||
void Module::Interface::GetCecInfoBuffer(Kernel::HLERequestContext& ctx) {
|
||||
IPC::RequestParser rp(ctx);
|
||||
const u32 buffer_size = rp.Pop<u32>();
|
||||
const u32 possible_info_type = rp.Pop<u32>();
|
||||
const u32 buffer_size = rp.Pop<u32>();
|
||||
auto& buffer = rp.PopMappedBuffer();
|
||||
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 2);
|
||||
rb.Push(ResultSuccess);
|
||||
rb.PushMappedBuffer(buffer);
|
||||
|
||||
LOG_DEBUG(Service_CECD, "called, buffer_size={}, possible_info_type={}", buffer_size,
|
||||
possible_info_type);
|
||||
LOG_DEBUG(Service_CECD, "called, possible_info_type={}, buffer_size={}", possible_info_type,
|
||||
buffer_size);
|
||||
}
|
||||
|
||||
void Module::Interface::GetCecdState(Kernel::HLERequestContext& ctx) {
|
||||
|
Loading…
Reference in New Issue
Block a user