mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 15:49:25 +01:00
Merge pull request #13008 from noahpistilli/kd-get-time-triggers
IOS/KD: Implement Get Time Triggers
This commit is contained in:
commit
5f39db5876
@ -1179,6 +1179,25 @@ std::optional<IPCReply> NetKDRequestDevice::IOCtl(const IOCtlRequest& request)
|
|||||||
return_value = IPC_SUCCESS;
|
return_value = IPC_SUCCESS;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case IOCTL_NWC24_KD_GET_TIME_TRIGGERS:
|
||||||
|
{
|
||||||
|
if (request.buffer_out == 0 || request.buffer_out % 4 != 0 || request.buffer_out_size < 12)
|
||||||
|
{
|
||||||
|
return_value = IPC_EINVAL;
|
||||||
|
ERROR_LOG_FMT(IOS_WC24, "NET_KD_REQ: IOCTL_NWC24_KD_GET_TIME_TRIGGERS = IPC_EINVAL");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
INFO_LOG_FMT(IOS_WC24, "NET_KD_REQ: IOCTL_NWC24_KD_GET_TIME_TRIGGERS");
|
||||||
|
|
||||||
|
std::lock_guard lg(m_scheduler_buffer_lock);
|
||||||
|
memory.Write_U32(m_mail_span, request.buffer_out + 4);
|
||||||
|
memory.Write_U32(m_download_span, request.buffer_out + 8);
|
||||||
|
WriteReturnValue(memory, NWC24::WC24_OK, request.buffer_out);
|
||||||
|
|
||||||
|
return_value = IPC_SUCCESS;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
request.Log(GetDeviceName(), Common::Log::LogType::IOS_WC24);
|
request.Log(GetDeviceName(), Common::Log::LogType::IOS_WC24);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user