From 749a4ad1ef785eb82e42cf083b6cd2511f40001c Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Wed, 20 Apr 2022 18:42:47 -0700 Subject: [PATCH] GCAdapter: Remove check on write size on android It was removed for non-android in 56239d1ae139998a7cde17ff02f0526ffb17f5ef, and android already uses a separate thread, so presumably this isn't needed anymore. --- Source/Core/InputCommon/GCAdapter.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Source/Core/InputCommon/GCAdapter.cpp b/Source/Core/InputCommon/GCAdapter.cpp index 07b89ff619..0f52305816 100644 --- a/Source/Core/InputCommon/GCAdapter.cpp +++ b/Source/Core/InputCommon/GCAdapter.cpp @@ -286,13 +286,7 @@ static void Write() } env->ReleaseByteArrayElements(jrumble_array, jrumble, 0); - int size = env->CallStaticIntMethod(s_adapter_class, output_func, jrumble_array); - // Netplay sends invalid data which results in size = 0x00. Ignore it. - if (size != write_size && size != 0x00) - { - ERROR_LOG_FMT(CONTROLLERINTERFACE, "error writing rumble (size: {})", size); - Reset(); - } + env->CallStaticIntMethod(s_adapter_class, output_func, jrumble_array); } Common::YieldCPU();