1
0
mirror of https://github.com/djhackersdev/bemanitools.git synced 2025-01-31 20:15:20 +01:00

p3ioemu: reorganise code for easy reading

This commit is contained in:
Will Toohey 2022-01-03 14:12:23 +10:00
parent 1105a2a130
commit 4721ba2d3c

View File

@ -171,15 +171,6 @@ static HRESULT p3io_emu_handle_ioctl(struct irp *irp)
return S_OK;
case P3IO_IOCTL_READ_JAMMA:
// handle it below
break;
default:
log_warning("Unknown ioctl %08x", irp->ioctl);
return E_NOTIMPL;
}
if (irp->read.nbytes < sizeof(uint32_t)) {
log_warning("Insufficient ioctl response buffer space");
@ -201,6 +192,12 @@ static HRESULT p3io_emu_handle_ioctl(struct irp *irp)
irp->read.pos = sizeof(pad);
return S_OK;
default:
log_warning("Unknown ioctl %08x", irp->ioctl);
return E_NOTIMPL;
}
}
static HRESULT p3io_emu_handle_read(struct irp *irp)