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:
parent
5a10be7fef
commit
88ab6352dd
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue