mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 16:18:58 +00: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
1 changed files with 6 additions and 0 deletions
|
@ -249,10 +249,16 @@ void Input(int chan, GCPadStatus* pad)
|
||||||
if (s_handle == nullptr)
|
if (s_handle == nullptr)
|
||||||
{
|
{
|
||||||
if (s_detected)
|
if (s_detected)
|
||||||
|
{
|
||||||
Init();
|
Init();
|
||||||
else
|
if (s_handle == nullptr)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
u8 controller_payload_copy[37];
|
u8 controller_payload_copy[37];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue