mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
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.
This commit is contained in:
parent
27947046af
commit
749a4ad1ef
@ -286,13 +286,7 @@ static void Write()
|
|||||||
}
|
}
|
||||||
|
|
||||||
env->ReleaseByteArrayElements(jrumble_array, jrumble, 0);
|
env->ReleaseByteArrayElements(jrumble_array, jrumble, 0);
|
||||||
int size = env->CallStaticIntMethod(s_adapter_class, output_func, jrumble_array);
|
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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Common::YieldCPU();
|
Common::YieldCPU();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user