mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Add some stability fixes, though probably not enough
This commit is contained in:
parent
bc03bbccf1
commit
9215878868
@ -76,13 +76,29 @@ public class Java_GCAdapter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static int Input() {
|
public static int Input() {
|
||||||
int read = usb_con.bulkTransfer(usb_in, controller_payload, controller_payload.length, 16);
|
if (usb_in != null)
|
||||||
return read;
|
{
|
||||||
|
int read = usb_con.bulkTransfer(usb_in, controller_payload, controller_payload.length, 16);
|
||||||
|
return read;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// TODO Is this right?
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int Output(byte[] rumble) {
|
public static int Output(byte[] rumble) {
|
||||||
int size = usb_con.bulkTransfer(usb_out, rumble, 5, 16);
|
if (usb_out != null)
|
||||||
return size;
|
{
|
||||||
|
int size = usb_con.bulkTransfer(usb_out, rumble, 5, 16);
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// TODO Is this right?
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void OpenAdapter()
|
public static void OpenAdapter()
|
||||||
|
Loading…
Reference in New Issue
Block a user