p3ioemu: reorganise code for easy reading

This commit is contained in:
Will Toohey
2022-01-03 14:12:23 +10:00
parent 8e92ffd498
commit 5fe882141d
+6 -9
View File
@@ -171,15 +171,6 @@ static HRESULT p3io_emu_handle_ioctl(struct irp *irp)
return S_OK; return S_OK;
case P3IO_IOCTL_READ_JAMMA: 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)) { if (irp->read.nbytes < sizeof(uint32_t)) {
log_warning("Insufficient ioctl response buffer space"); 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); irp->read.pos = sizeof(pad);
return S_OK; return S_OK;
default:
log_warning("Unknown ioctl %08x", irp->ioctl);
return E_NOTIMPL;
}
} }
static HRESULT p3io_emu_handle_read(struct irp *irp) static HRESULT p3io_emu_handle_read(struct irp *irp)