From bb99062f187d7fecf57644bce641548f35ee956a Mon Sep 17 00:00:00 2001 From: Techjar Date: Sun, 12 Apr 2020 23:44:53 -0400 Subject: [PATCH] IOS/USBHost: Skip starting threads when determinism is enabled The threads can't actually be started when determinism is enabled, as the behavior would not be deterministic, but Open() still tries to start the threads and wait, resulting in a deadlock when booting certain games and homebrew in NetPlay. --- Source/Core/Core/IOS/USB/Host.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/IOS/USB/Host.cpp b/Source/Core/Core/IOS/USB/Host.cpp index 710d26919c..f6ab6ed661 100644 --- a/Source/Core/Core/IOS/USB/Host.cpp +++ b/Source/Core/Core/IOS/USB/Host.cpp @@ -35,7 +35,7 @@ USBHost::~USBHost() = default; IPCCommandResult USBHost::Open(const OpenRequest& request) { - if (!m_has_initialised) + if (!m_has_initialised && !Core::WantsDeterminism()) { StartThreads(); // Force a device scan to complete, because some games (including Your Shape) only care