GC Adapter: do not proceed with the input read if the thread isn’t running

If the Init() call does not work in the fallback path, then abort.
This commit is contained in:
mathieui 2015-03-10 17:47:02 +01:00
parent 5a10be7fef
commit 88ab6352dd

View File

@ -249,9 +249,15 @@ void Input(int chan, GCPadStatus* pad)
if (s_handle == nullptr)
{
if (s_detected)
{
Init();
if (s_handle == nullptr)
return;
}
else
{
return;
}
}
u8 controller_payload_copy[37];