mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-19 02:36:27 +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_handle == nullptr)
|
||||||
{
|
{
|
||||||
if (s_detected)
|
if (s_detected)
|
||||||
|
{
|
||||||
Init();
|
Init();
|
||||||
|
if (s_handle == nullptr)
|
||||||
|
return;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
u8 controller_payload_copy[37];
|
u8 controller_payload_copy[37];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user