mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-03 10:59:58 +00:00
Fix parameter name in EnableNotification
This commit is contained in:
parent
eea08f281d
commit
e85b22320a
2 changed files with 6 additions and 2 deletions
|
@ -32,6 +32,10 @@ constexpr u32 CallingPidDesc() {
|
||||||
return 0x20;
|
return 0x20;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
constexpr u32 TransferHandleDesc() {
|
||||||
|
return 0x20;
|
||||||
|
}
|
||||||
|
|
||||||
constexpr u32 StaticBufferDesc(u32 size, unsigned int buffer_id) {
|
constexpr u32 StaticBufferDesc(u32 size, unsigned int buffer_id) {
|
||||||
return 0x2 | (size << 14) | ((buffer_id & 0xF) << 10);
|
return 0x2 | (size << 14) | ((buffer_id & 0xF) << 10);
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@ static Kernel::SharedPtr<Kernel::Event> event_handle;
|
||||||
static void RegisterClient(Service::Interface* self) {
|
static void RegisterClient(Service::Interface* self) {
|
||||||
u32* cmd_buff = Kernel::GetCommandBuffer();
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
||||||
|
|
||||||
if (cmd_buff[1] != 0x20) {
|
if (cmd_buff[1] != IPC::CallingPidDesc()) {
|
||||||
cmd_buff[0] = IPC::MakeHeader(0x0, 0x1, 0); //0x40
|
cmd_buff[0] = IPC::MakeHeader(0x0, 0x1, 0); //0x40
|
||||||
cmd_buff[1] = ResultCode(ErrorDescription::OS_InvalidBufferDescriptor, ErrorModule::OS,
|
cmd_buff[1] = ResultCode(ErrorDescription::OS_InvalidBufferDescriptor, ErrorModule::OS,
|
||||||
ErrorSummary::WrongArgument, ErrorLevel::Permanent).raw;
|
ErrorSummary::WrongArgument, ErrorLevel::Permanent).raw;
|
||||||
|
@ -57,7 +57,7 @@ static void EnableNotification(Service::Interface* self) {
|
||||||
|
|
||||||
cmd_buff[0] = IPC::MakeHeader(0x2, 0x1, 0x2); // 0x20042
|
cmd_buff[0] = IPC::MakeHeader(0x2, 0x1, 0x2); // 0x20042
|
||||||
cmd_buff[1] = RESULT_SUCCESS.raw; // No error
|
cmd_buff[1] = RESULT_SUCCESS.raw; // No error
|
||||||
cmd_buff[2] = IPC::CallingPidDesc();
|
cmd_buff[2] = IPC::TransferHandleDesc();
|
||||||
cmd_buff[3] = Kernel::g_handle_table.Create(event_handle).MoveFrom();
|
cmd_buff[3] = Kernel::g_handle_table.Create(event_handle).MoveFrom();
|
||||||
LOG_WARNING(Service_SRV, "(STUBBED) called");
|
LOG_WARNING(Service_SRV, "(STUBBED) called");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue