mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-13 15:59:23 +01:00
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…
x
Reference in New Issue
Block a user