mirror of
https://github.com/wiiu-env/MochaPayload.git
synced 2024-11-25 17:26:53 +01:00
Implement IOCTL_KERN_WRITE32 in /dev/iosuhax
This commit is contained in:
parent
5762c88deb
commit
009086ed52
@ -165,8 +165,11 @@ static int ipc_ioctl(ipcmessage *message) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case IOCTL_KERN_WRITE32: {
|
case IOCTL_KERN_WRITE32: {
|
||||||
//! TODO: add syscall as on kern_read32
|
if ((message->ioctl.length_in < 8)) {
|
||||||
res = IOS_ERROR_NOEXISTS;
|
res = IOS_ERROR_INVALID_SIZE;
|
||||||
|
} else {
|
||||||
|
svcCustomKernelCommand(KERNEL_WRITE32, message->ioctl.buffer_in[0], message->ioctl.buffer_in[1]);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
//!--------------------------------------------------------------------------------------------------------------
|
//!--------------------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user