From e5277a5f49673afa854aa3fcd14919e9debd97a1 Mon Sep 17 00:00:00 2001 From: skidau Date: Thu, 5 Mar 2015 23:11:48 +1100 Subject: [PATCH] Ignore invalid rumble data sent over Netplay to the GC Adapter --- Source/Core/Core/HW/SI_GCAdapter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/HW/SI_GCAdapter.cpp b/Source/Core/Core/HW/SI_GCAdapter.cpp index 795054c61f..bae96a1ccf 100644 --- a/Source/Core/Core/HW/SI_GCAdapter.cpp +++ b/Source/Core/Core/HW/SI_GCAdapter.cpp @@ -376,7 +376,8 @@ void Output(int chan, u8 rumble_command) if (SConfig::GetInstance().m_GameCubeAdapterThread) { libusb_interrupt_transfer(s_handle, s_endpoint_out, rumble, sizeof(rumble), &size, 16); - if (size != 0x05) + // Netplay sends invalid data which results in size = 0x00. Ignore it. + if (size != 0x05 && size != 0x00) { INFO_LOG(SERIALINTERFACE, "error writing rumble (size: %d)", size); Shutdown();