forked from Hay1tsme/segatools
Improve JVS bus life cycle handling
This commit is contained in:
@ -81,6 +81,17 @@ static HRESULT slider_handle_irp_locked(struct irp *irp)
|
||||
struct iobuf req_iobuf;
|
||||
HRESULT hr;
|
||||
|
||||
if (irp->op == IRP_OP_OPEN) {
|
||||
dprintf("Chunithm slider: Starting backend DLL\n");
|
||||
hr = chuni_io_slider_init();
|
||||
|
||||
if (FAILED(hr)) {
|
||||
dprintf("Chunithm slider: Backend DLL error: %x\n", (int) hr);
|
||||
|
||||
return hr;
|
||||
}
|
||||
}
|
||||
|
||||
hr = uart_handle_irp(&slider_uart, irp);
|
||||
|
||||
if (FAILED(hr) || irp->op != IRP_OP_WRITE) {
|
||||
|
Reference in New Issue
Block a user