Implement IOCTL_KERN_WRITE32 in /dev/iosuhax

This commit is contained in:
Maschell 2020-11-27 00:54:24 +01:00
parent 5762c88deb
commit 009086ed52

View File

@ -165,8 +165,11 @@ static int ipc_ioctl(ipcmessage *message) {
break;
}
case IOCTL_KERN_WRITE32: {
//! TODO: add syscall as on kern_read32
res = IOS_ERROR_NOEXISTS;
if ((message->ioctl.length_in < 8)) {
res = IOS_ERROR_INVALID_SIZE;
} else {
svcCustomKernelCommand(KERNEL_WRITE32, message->ioctl.buffer_in[0], message->ioctl.buffer_in[1]);
}
break;
}
//!--------------------------------------------------------------------------------------------------------------