GCAdapter: Remove check on write size on android

It was removed for non-android in 56239d1ae1, and android already uses a separate thread, so presumably this isn't needed anymore.
This commit is contained in:
Pokechu22 2022-04-20 18:42:47 -07:00
parent 27947046af
commit 749a4ad1ef

View File

@ -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();