From 88ab6352dd5fe3f5852d3f57b4414265816ee533 Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 10 Mar 2015 17:47:02 +0100 Subject: [PATCH] =?UTF-8?q?GC=20Adapter:=20do=20not=20proceed=20with=20the?= =?UTF-8?q?=20input=20read=20if=20the=20thread=20isn=E2=80=99t=20running?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the Init() call does not work in the fallback path, then abort. --- Source/Core/Core/HW/SI_GCAdapter.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Core/Core/HW/SI_GCAdapter.cpp b/Source/Core/Core/HW/SI_GCAdapter.cpp index a4410881cc..6a81bedbdc 100644 --- a/Source/Core/Core/HW/SI_GCAdapter.cpp +++ b/Source/Core/Core/HW/SI_GCAdapter.cpp @@ -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];