summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2022-04-20 18:42:47 -0700
committerPokechu22 <Pokechu022@gmail.com>2022-06-02 19:39:36 -0700
commit749a4ad1ef785eb82e42cf083b6cd2511f40001c (patch)
tree01728887c7c2ffcd57cab2f6928e076d3e5325ca /Source/Core/InputCommon
parent27947046af4a1c234a63d8636637f8bb74372860 (diff)
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.
Diffstat (limited to 'Source/Core/InputCommon')
-rw-r--r--Source/Core/InputCommon/GCAdapter.cpp8
1 files changed, 1 insertions, 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();